- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
C++ program to print Happy Birthday
This is a C++ program to print Happy Birthday.
Algorithm
Begin Take a str1 which takes the next character of our desired ouput like for H it will be G. Assign the string to a pointer p. Make a while loop till *p != NULL. Go next character of the string print it and after that go the nextposition of string. Print the result. End
Example
#include<iostream> using namespace std; main(){ char str[]="G`ooxAhqsgc`x",*p; p=str; while(*p!='\0') ++*p++; cout<<str; }
Output
HappyBirthday
- Related Articles
- Java Program to check the birthday and print Happy Birthday message
- Haskell Program to Check the birthday and print Happy Birthday message
- Python program to print all Happy numbers between 1 and 100
- Write a program for Happy Woman’s Day in c++
- Birthday Paradox in C++
- Longest Happy String in C++
- Longest Happy Prefix in C++
- Program to print Hut in C++
- C program to print environment variables
- C program to print string tokens
- C++ Program to Print a Dictionary
- Python program to check if the given number is Happy Number
- C++ Program to print the diamond shape
- Program to print Interesting pattern in C++
- Program to print Kite Pattern in C++

Advertisements