Check out example codes for "print hello world in c". It will help you in understanding the concepts better.

Code Example 1

#include <stdio.h>

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

Code Example 2

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

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com