Happy birthday in C

Happy Birthday in C

To wish someone a happy birthday in C, you can use the printf function to display the birthday message. Here's an example:

#include <stdio.h>

int main() {
    printf("Happy Birthday!\n");
    return 0;
}

Explanation: - The #include <stdio.h> line is used to include the standard input/output library, which provides the printf function. - The int main() function is the entry point of the program. - Inside the main function, the printf function is used to display the "Happy Birthday!" message. - The \n is a special character that represents a newline, so the message will be displayed on a new line.

Please note that this is a simple example, and you can customize the message as per your requirements.