b) 4 c) 6 d) 7
32. Any C program
a) must contain at least one function b) need not contain
ant function
c) needs input data d) none of the above
33. Using goto inside for loop is equivalent to using
a) continue b) break c) return d)none of the above
34. The program fragment
int a=5, b=2;
printf(“%d”,a+++++b);
a) prints 7 b)prints 8 c) prints 9 d)none of the above
35. printf(“ab” , “cd”,”ef”); prints
a) ab abcdef c) abcdef, followed by garbage value d) none of
the above
36. Consider the following program segment.
i=6720; j=4;
while((i%j)==0)
{
i=i/j;
j=j+1;
}
On termination j will have the value
a) 4 b) 8 c) 9 d) 6720
Answer / priyanka
any c program must contain atleast one fuction which is called main()
| Is This Answer Correct ? | 19 Yes | 3 No |
void main() { int *ptr; ptr = (int *) 0x400 ; printf("ptr=%d",ptr); } output?
What is the difference between the expression “++a” and “a++”?
In header files whether functions are declared or defined?
main() { char as[] = "\\0\0"; int i = 0; do{ switch( as[i++]) {case '\\' : printf("A"); break; case 0 : printf("B"); break; default : printf("C"); break; }} while(i<3); }
4 Answers Vector, Vector India,
Difference between C and Embedded C?
What is main return c?
what is difference between C and C++
how to do in place reversal of a linked list(singly or doubly)?
Do you know what is a programing language ?
Given an array of length N containing integers between 1 and N, determine if it contains any duplicates.
What is difference between structure and union in c?
Explain high-order and low-order bytes.