Saved Bookmarks
| 1. |
Write function definitions Remember that cube’s volume is side3 Cylinder’s volume is πr2h Rectangular box’s volume is length x breadth x height. |
|
Answer» This program contains one function called change() having one argument which is integer pointer. A change() function increment the pointer variable ‘b’ by 1. In main() function change() function is called and prints the array element from end which is incremented by 1 in change() function float volume(float side) { return side*side*side; } float volume(float radius, float height) { return 3.14*radius*radius*height; } float volume(float length, float breadth, float height); { return length*breadth*height; } |
|