Skip to main content

What is the general form of a C program in C programming?-Computer Science-Important topic in C

General form 

->Watch this for FUN - Funny job interview

Are you getting bored with online lectures?

->Watch this - When online lectures are boring 

Generally, the C program starts with the header files, followed by preprocessor directives(like macros), and then followed by the functions or the variables to be declared globally which is again followed by the main function for starting the execution.



#include<stdio.h> // Header files

#define a 10 // Preprocessor directives

int x=10; // Global variable

int main() // main function

{

}



Comments

Translate