write a program in c language to print hello world?


#include <stdio.h>

int main() {

    // Print message to the console

    printf("Hello, World!\n");

    return 0;

}


How to Run:

  1. Save the code in a file, e.g., hello.c.

  2. Compile it using a C compiler:

    bash:
    gcc hello.c -o hello
  3. Run the output program:

    bash:
    ./hello

Comments

Popular posts from this blog

C Language Introduction