To proclaim a variable you make use of the syntax "type <name>;". Here are a few variable declaration examples:
It is allowable to state numerous variables of the similar type on the similar line; every one must be divided by a comma.Code:int x; char letter; float the_float;
If you were watching closely, you may have seen that statement of a variable is forever followed by a semicolon (note that this is the similar process used when you call a function).Code:int a, b, c, d;



Reply With Quote
Copyright Techfuels
Bookmarks