Looking for a Tutor Near You?

Post Learning Requirement »
x

Choose Country Code

x

Direction

x

Ask a Question

x

x
x
x
Hire a Tutor

C Program - Chapter 2

Loading...

Published in: C / C++
482 Views

The structure of C program is explained

Uma / Madurai

3 years of teaching experience

Qualification: M.Sc (Rena Infotech, Cheranmahadevi - 2013)

Teaches: Advanced Excel, Basic Computer, Computer for official job, MS Office, School Level Computer, All Subjects, Biology, Computer Science, History, Social Studies, Geography, B.Sc Tuition, B.Tech Tuition, IT, M.Sc Tuition, C / C++, Java And J2EE, Visual Basic

Contact this Tutor
  1. Structure of C program: Header Main ———Ståtement Return
  2. 1. Header Files: • A header file is a file with extension .h which contains C function declarations and macro definitions to be shared between several source files.
  3. All lines that start # example of C Header files • stedef.h — Defines several useful types and macros. • stdint.h - exact width intertype stdio.h — core input and o/p functions • stdlib.h- numeric conversion functions pseudo random network generate and Memory location • math.h-common mathematical functions • stringvh—string handling functions
  4. 2. Main Method: It declare Main() function
  5. 3. Body of Main Method: It refers to statements that are a part of that function. 4. Statement : It give the instruction for compiler, t terminated ; 5. Return Statement : t re ers to the return values from a function. The return statement and return value depend upon the return type. The return value may be used by an operating system to know the termination status.
  6. Example Program: # include<stdio.h> Ant main() Printf("00d", a) • returnØ,•