

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- 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 Questions & Answers
- Java Program to check the birthday and print Happy Birthday message
- Python program to print all Happy numbers between 1 and 100
- Birthday Paradox in Python
- Birthday Paradox in C++
- Birthday Reminder Application in Python
- Python program to check if the given number is Happy Number
- Happy Number in Python
- Happy Numbers in Python
- Longest Happy Prefix in C++
- Longest Happy String in C++
- Program to find maximum number of people we can make happy in Python
- Write a program for Happy Woman’s Day in c++
- Determining happy numbers using recursion JavaScript
- Why do you celebrate your birthday every year?
- Program to print Hut in C++
Advertisements