Consider the following structure:struct num nam{int no;char name[25];}struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};..........printf("%d%d",n1[2],no,(*(n1 Consider the following structure:struct num nam{int no;char name[25];}struct num nam n1[]={{12,"Fred"},{15,"Martin"},{8,"Peter"},{11,Nicholas"}};..........printf("%d%d",n1[2],no,(*(n1 + 2),no) + 1);What does the above statement print?A. 8,9B. 9,9C. 8,8D. 8,unpredictable value
Identify the in correct expressionA. a=b=3=4B. a=b=c=d=0C. float a=int b= 3.5D. int a; floatb; a=b=3.5;
Regarding the scope of the variables. Identify the incorrect statement:A. automatic variables are automatically initialized to 0B. static variables are automatically initialized to 0C. the address of a register variable is not accessibleD. static variables cannot be initialized with any expression
Cond 1?cond 2?cond 3? exp 1:exp 2:exp 3:exp 4; is equivalent to which of the following?A. if cond 1 exp 1; else if cond 2 exp 2; else if cond 3 exp 3; else exp 4;B. if cond 1 if cond 2 if cond 3 exp 1; else exp 2; else exp 3;
Latest Answer: the answer is D. ...
Latest Answer: The Answer is D. Because **= is not an operator. But the remaining three are assignment operators. ...
Latest Answer: absolutely ans is 5 b'coz defaultly y is initialised to 5.........as x==10 os true then it never enters into another loops below of tht and the value is 5........... ...
What does the following code do?fn(int n, int p, int r){static int a=p;switch(n) { case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; }}A. computes simple interest for one yearB. computes amount on compound interest for 1 to 4 yearsC. computes simple interest for four yearD. computes compound interest for 1 year
A=0;while(a<5)printf("%d\n", a++);How many times does the loop occurs?A. infiniteB. 5C. 4D. 6
How many times does the loop iterated?for(i=0;i=10;i+=2)printf("Hi\n");A.10B. 2C. 5D. None of these
View page << Previous 1 2 3 4 [5] 6 7 8 9 Next >>

Go Top