Structure C
Structure C
AT & T
CTd
Structure of C++ Program
• C++ programs must contain a function called
main() from which the program starts.
Void main()
{
…………
// Program Body
…………
}
• The main function serves as the driver
function.
C program
• Void main()
{ int a;
printf(“ Hello World”);
scanf(“%d”,&a);
}
• It uses header file stdio.h, for supporting
standard I/O operations.