Structure of C Program

  • Preprocessor directives
  • Global data declarations
  • main()  [main function]
{ local declaration part;
   program statements;
}
/* user defined functions*/
func 1()
{ ------------
   ------------
}

EXAMPLE:-

/* statement */ --- this is used to comment or to write it for understanding the steps. It does not effect the program.




Post a Comment

2 Comments