a. Basic introduction

C Basic Commands

Following are the basic commands in C programming language:

C Basic commandsExplanation
#include <stdio.h>This command includes standard input output header file(stdio.h) from the C library before compiling a C program
int main()It is the main function from where C program execution begins.
{Indicates the beginning of the main function.
/*_some_comments_*/Whatever written inside this command “/* */” inside a C program, it will not be considered for compilation and execution.
printf(“Hello_World! “);This command prints the output on the screen.
getch();This command is used for any character input from keyboard.
return 0;This command is used to terminate a C program (main function) and it returns 0.
}It is used to indicate the end of the main function.

Leave a Reply

Your email address will not be published. Required fields are marked *