Skip to main content

Basics of C language



Structure of C programming
  • Document section
  • Link section
  • Definition section 
  • Global variable section


main()
{
     Declaration section
     Execution section
}

user defined  functions
Function 1
Function 2 
Function 3
                 .
                 .
Function n







  • Document section :-


This section is optional part and this part is not executed by the computer/software. It is just ignored.

If this part is in single line we can mention it by double slash ( // ). double slash should be before the starting of the line and after the end of line.
e.g. // This is an example //


If this part is in multiple lines we can mention it by slash star ( /* )and  star slash ( */ ). slash star and  star slash should be before the starting of the line and after the end of line respectively.
e.g. /* This an example of documentation section. Everything is ignored by the compiler or computer written in this section. Follow my blog for latest updates. */


  • Link section :-
This section is compulsory in the programming.

Header files :-

There are number of header files some of them are 

  • stdio.h
  • conio.h
  • string.h
  • math.h
  • graphics.h

Syntax 

#include<headerfile>

e.g   
#include<stdio.h>
#include<conio.h>
#include<math.h>

# - preprocessor directive

Comments

Popular posts from this blog

Ethical hacking

Ethical Hacking What is hacking Don't know  Click here There are some programming languages which are most important for Ethical Hacking without any external sofwares. Make software / program. Go into system. and Hack them. There are some programming languages that you must learn to become a professional hacker  That programming languages are :- Click here to know that programming languages.

Scheduling Static & Dynamic Deterministic & stochastic feasible & Infeasible Parallel & sequential

IBFS by LCM