No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Write a code snippet to declare and accept an integer and calculate the cube value of the integer. The integer should be passed by reference to a function cube(). The function would calculate the result of cubing the integer. The function prototype to be used is: void cube (int *p); … | |
1) The & symbol in C returns the address of a variable. 2) In the expression, `printf(ā%dā, (ans > val)? z : w);` displays the value of w if the condition is true. 3) In the expression, `for( ; a>b; )` A semicolon on its own indicates a null statement. … | |
Write a code snippet to declare and accept an integer and calculate the cube value of the integer. The integer should be passed by reference to a function cube(). The function would calculate the result of cubing the integer. The function prototype to be used is: void cube (int *p); … |