Get $5 If You Have A Twitter Account Click Bellow Banner

Affordable SEO by SEOClerks

C Programing Basics. Tutorial 1 - Basic Structure Of A C Program

Posted by Rashin Sundaran On Friday, 20 April 2012 0 comments


Basic Structure Of A C Program

Documentation Section
Link Section
Defenition Section
Global Declaration Section
Main() Function Section
{

  Declaration Part
  Executable  Part





}

Sub Program Section                                

Function1

 Function2
User Defined Functions
Functionn



Documentation Structure:-Name Of Auther And Other Details As Comments

Link Section:-It  Gives Instuction To Compiler To Link Function From System library

Defenition Section:-It Defines All Symbolic Constants eg : #include<stdio.h>

Global Declaration Section:-Use To Declare Variables .Which Is Used In More Than 1 Function

Main() Function:-Every C Program Must Have A Main() Function  Consisting Of Two Parts

                                Declaration Part:- Declares All Variable Used In  Exicution Part

                                Execution Part:- It Consist Of Statement to Be Executed(Atleast 1)

                              Note:= These Two Parts Must Be Enclosed In Opening  And Closing Brackets  “{“  “}”

Sub Program Section:- It Consist Of  User Defined Functions
                                                                                                                                                   
                                                                                                                                                                                                                                                     To Be Continued…..


0 comments:

Post a Comment

Text

http://page-rank-checker.org/ Top Blogs DMCA.com

Pageviews