Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

B. 32767 times C. times D. stack Till overflows 18. The keyword used to transfer

ID: 3843891 • Letter: B

Question

B. 32767 times C. times D. stack Till overflows 18. The keyword used to transfer from a function back to the calling finction A. break control B. exit(0) C. go back D. return 19. Which of the following functions compares two strings? A. B. stringeompare0, C. D. strempo; 20. Which of the following adds one to the end of another? A., append0; string B. string add0; C. strcat0; D. stradd0, 21. What will happen if in a c program you assign a valuetoan amayciement wbose subscripteaeeds the size of array? A. The element will be set to B. The compiler would report an error, C. The program may crash if some important data gets overwritten D. The array size would appropriately grow. 2. What does the following declaration mean? ptr)[10 A. ptr is array of 10 pointers to integers B, ptr is a pointer to an array of 10 integers C. ptr is an array of 10 integers D. ptr is a pointer to array 23. In if you pass an array as an argument to a function, what actually gets passed? C. A. Value of elements in array B. First element of the array C. Address of the first element of array D. Address of the last element of amay 24. The operator used to get value at address stored in a pointer variable is B. & 25. What will be the output of the program, if the ofxis 500 and integris4bya address int main0

Explanation / Answer

18) c
Go back is used to return control to calling function

19)
D)strcmp();

20)
c) strcat();

21)
c) The program may crash if some important data gets overwritten

22)
B) ptr is a pointer to an array of 10 integers

23)
C)Address of the First element of Array

24)
A) *