#include <stdio.h>

int main()
{
    printf("Hello, World!");
    return 0;
}

Output

Hello, World!

Explanation

  • #include <stdio.h>: Includes the Standard Input/Output library, which provides the printf() function.
  • int main(): The main function where program execution begins.
  • printf("Hello, World!");: Prints the text Hello, World! to the screen.
  • return 0;: Indicates that the program executed successfully.