Define the structure of a C program.
Answers
Answered by
1
Consists of comments, some description of the program, programmer name and any other useful points that can be referenced later.LinkProvides instruction to the compiler to link function from the library function.DefinitionConsists of symbolic constants.Global declarationConsists of function declaration and global variables.main( )
{
}Every C program must have a main() function which is the starting point of the program execution.
{
}Every C program must have a main() function which is the starting point of the program execution.
Answered by
1
C structures are defined by some special and large variables of various data types.
It is contained by several named variables that is represented in a single name. Any program structure is usually consists of some logical expression with a predefined organized way. The 'C Structure' must be composed in the following specific arrangement:
- Documentation section
- Link section
- Definition section
- Global declaration section
- Main ( ) function section
- Subprogram section
For an example, if we want to create a C Structure, we will use 'strut' keyword. it is the compressed form of structured data type.
struct struct name {
DataType member1_name;
DataType member2_name;
DataType member3_name;
…...............................................;
};
Similar questions
English,
7 months ago
India Languages,
1 year ago