c program hello world code example

Example 1: c hello world

#include <stdio.h>

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

Example 2: hello world c

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("Hello world!\n");
    return 0;
}

Example 3: hello word c

#include <stdio.h>
int main() {
   // printf() displays the string inside quotation
   printf("Hello, World!");
   return 0;
}

Example 4: how to make a hello world program in c

#include <stdio.h>
#include <stdlib.h>

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

Example 5: c hello world

#include <stdio.h>

int main()
{
	printf("Hello, World!\n");
}

Example 6: hello world program in c

#include <stdio.h>
int main() {
   // printf() displays the string inside quotation
   printf("Hello, World!");
   return 0;
}