(Solved):
The following code segment should compute the product of integers between 1 and ...
The following code segment should compute the product of integers between 1 and 10 . What is the error? int p=1,x=1; dofx=x+1p=p?x Wwhile fx<=100; a. Condition x<=10 should be replaced by x<11 b. No error c. p=p4x, should be before x=x+1 d. x shoulo be initialized to 2 not 1
What is the error in the following code? void display(int a) printf("\% d?, ak) int main0 ( int a?=(1,2,3,4,5,6,7,8), for (i=0i<8i++) display(ali): return 0 ; a. function cannot be called with array elen b. function can not te called insice a loop
Assume that the following code segment checks the following conditions: x?100,50?x<100,x<50. What are the unnecessary conditions? if (x>=100) else if ((x<100)&&(x>=50)) else 10. x>=50 is unnecessary 15. al conditions are required all conditions are required and last else should be else if (x<50)
Which of the following is true about the following coce? lnifmand 1 int ti char an = char b] = "cong 230? fib|7|. ?a(1]) printe-wn ? return 0