Fundamentals of C language




C is a procedural programming language to develop scientific, Engineering applications, and device drivers.C language is also used to implement different operating system operations. For ex: UNIX kernel is completely developed in a C language. Latter LINUX and  GNU written in C.The latest version of C is C11.

 
Characteristics of C Language:

a)  C is a more user friendly and powerful language.

b)  C is most commonly  used  programming language for writing operating system.

c) C is a Structural language

d) Its produce efficient programs.


Basic Structure of C program: 

Documentation Section
File Inclusion
Global Declaration Section
main( )   ------- Main function
{

               Declaration section
           
               Executable  section   
}

 Subprogram section
Function -1 
{  }
 Function 2   

Documentation Section :    In this section includes name of the program, the author and others details. All document must be include / * -------------*/ or sentence should  start with two hypon   
ex :  -- this is addition program 

File Inclusion : In this section include file which is used in program  by using # symbol.all lines that start with # are processed by processor which is a program invoked by the compiler.

Global Declaration section: In this section global variable can be declare. 

Main( ) : Main is the starting point of the program, from this point execution of program invoke by the compiler.
 
Subprogram section : In subprogram section user define different user define function can be define.

Step of execution of C program in windows: 
Step 1 :  Type the program in editor window.
Step 2 :  First compile from compile menu select compile (key Alt+f9)
Step 3:    Execute the program by using Run menu ( Key Ctrl + f9)






 
SHARE

Milan Tomic

Hi. I’m Designer of Blog Magic. I’m CEO/Founder of ThemeXpose. I’m Creative Art Director, Web Designer, UI/UX Designer, Interaction Designer, Industrial Designer, Web Developer, Business Enthusiast, StartUp Enthusiast, Speaker, Writer and Photographer. Inspired to make things looks better.

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Important of Database privilages

Database privileges Privileges are the right or permission to execute particular SQL statements.                           System Se...