



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Summer 2008
June 5, 2008
(^) Every C++ program has a function main (^) Basic parts of function main are: (^) The heading (^) The body of the function
(^) The body of the function is enclosed between { and } (^) Has two types of statements (^) Declaration statements Executable statements (^) Errors in syntax are found in compilation int x; //Line 1 int y //Line 2: syntax error double z; //Line 3 y = w + x; //Line 4: syntax error