#include
main() { Â Â Â printf("Welcome to CPROGARMMINGINFO.COM\n"); }
This program being the most simple program in C, still has some points which are worth discussing.
Each and every C Program contains a main function. This is the starting point for a program.
#include <"stdio.h"> is basically telling your program to interact with standard IO (Screen, File System and Your Keyboard).
main() defines the start of the function, while the curly braces are start and end of the main function.
printf() prints the text "Welcome to CPROGRAMMINGINFO.COM" on the screen. If you are wondering what the "\n" is for, well it is to print a newline at the end of the text on the screen.
CHeckout our other categories to get into this brilliant language.
-RD
|