C printf Declaration

#include <stdio.h>

int main() {
    printf("Hello, World!\n");
    return 0;
}
  1. #include <stdio.h>: Includes the standard input-output library for handling input and output operations.

  2. int main() {: Declares the main function that serves as the entry point for the program. The function returns an integer value.

  3. printf("Hello, World!\n");: Prints the string "Hello, World!" followed by a newline character to the standard output (usually the console).

  4. return 0;: Indicates the successful execution of the program by returning 0 to the operating system.

  5. }: Closes the main function block.