Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I, II and III II and III III and IV I and II I, III and IV TRUE ANSWER : ? YOUR ANSWER : ?
What does the following declaration mean?int (*ptr)[10]; ptr is a pointer to an array of 10 integers ptr is an pointer to array ptr is an array of 10 integers ptr is array of pointers to 10 integers TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char far *farther, *farthest; printf("%d..%d", sizeof(farther), sizeof(farthest));} 4..4 2..4 4..2 2..2 TRUE ANSWER : ? YOUR ANSWER : ?
What will happen after compiling and running following code?main(){ printf("%p", main); } Will make an infinite loop. None of these. Some address will be printed. Error TRUE ANSWER : ? YOUR ANSWER : ?
Choose the best answer.Prior to using a pointer variable It should be declared. None of these. It should be initialized. It should be both declared and initialized. TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} 6 Compiler Error Garbage Value 5 TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>#define a 10void main(){ #define a 50 printf("%d", a);} 10 Compiler Error None of These 50 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:void main(){ int i=10; i = !i>14; printf("i=%d", i); } 1 0 10 None of these 14 TRUE ANSWER : ? YOUR ANSWER : ?
What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } exam is printed XAM is printed Nothing is printed Compiler Error TRUE ANSWER : ? YOUR ANSWER : ?
The function sprintf() works like printf(), but operates on .......... stdin stderr no such function in 'C'. string Data file TRUE ANSWER : ? YOUR ANSWER : ?