Question: retalut What is the error in the following function definition? int f( int x,inty) (printf(result is %d ,xy); ) a. xy cannot be inside printfo







retalut What is the error in the following function definition? int f( int x,inty) (printf("result is %d ,xy); ) a. xy cannot be inside printfo b. No error c. Function f should return an integer value d. x and y values should be detined inside fo function before printf What is the error in the following code segment? intx=1,yfor(x>10x++)y+=2 a. for (x>10x++) should be replaced by for(int x=1x>10x++) and int x=1 should be removed b. x++ should be replaced by ++x c. Infinite Loop, x++ can be replaced by x= What is the enor in the following code? int functionint a) retuin 1; 1 int man0 I intx=0 print "'Sod', function(x) function is returning 1 No ertor function cannot return in intiget a aut If the following code segment displays computer 4 times, what should be the statement in (1)? int ii printf("computer"); a. i=2 b. i=4 C. i=2 d. %=2 Which ene is an invalid array initialczation? a a int al4] =[1,23,4.5} b. int a\{5\}=\{1,23,4.5\}; c. int at6]-[1,23,4,5]: d. int atle (1,2,3,45)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
