basic rules of c programmiddot it


Basic rules of C++ program:

·     It must have only one main function

·     If the main function has return type it must  have return value

·     Statement must end with semicolon

·     To comment one line use //

·     To comment more than one line start /* and end with */

·     The primary variables are declared like C variables.

·     The variables must be separated individually in cin >> and cout < Input and

Output can be managed using I/O console functions.

·     cin can read only words without blank space in string.

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: basic rules of c programmiddot it
Reference No:- TGS0161105

Expected delivery within 24 Hours