syntax:
datatype v1,v2,v3....... |
---|
- datatype refers to the type of the data i.e integer,float,character,double.....
- v1,v2,v3...are the names of the variables variables are seperated by commas
- a declaration statement end with semicolon
- declaration of the variable is usually done immediately after the opening brace of the pgm
- the variable can also be declared out side(either before or after) the main function
No comments:
Post a Comment