Here is the C "Hello, World!" program
#include
int main() {
printf("Hello, World!\n");
return 0;
}
Output

- In this program, the
#include <stdio.h>
line is a preprocessor directive that tells the compiler to include the standard input/output library, which provides theprintf()
function. - The
main()
function is the entry point of the program, where the execution starts. Inside themain()
function, we use theprintf()
function to print the string “Hello, World!” to the console. The\n
represents a newline character, which adds a line break after the message. - Finally, the
return 0;
statement indicates that the program has finished running and it is returning a value of 0 to the operating system, indicating successful execution.
SELECT AVG(emp_sal)
FROM employee;
SELECT COUNT(*)
FROM employee;
Tagged C Hello World Program