![]() |
![]() |
![]() |
![]() |
![]() |
|
You can initialize variables, as in the following program:
main ( ) {
int height = 11;
int width = 9;
int length = 40;
...
}
You can combine several initializations into one, more concise variable declaration, as in the following example:
main ( ) {
int height = 11, width = 9, length = 40;
...
}
Again, note the obligatory commas.