Home Segments Index Top Previous Next

99: Mainline

Note that you must declare the data type of each parameter individually, because data types in parameter declarations, unlike data types in variable declarations, do not propagate across commas. Thus, the following is wrong:

                          *-- Wrong, data type does not propagate 
                          | 
                          v 
                   ------------- 
int box_car_volume (int h, w, l) {  
  ... 
}