main()
{
int (*functable[2])(char *format, ...) ={printf, scanf};
int i = 100;
(*functable[0])("%d", i);
(*functable[1])("%d", i);
(*functable[1])("%d", i);
(*functable[0])("%d", &i);
}
a. 100, Runtime error.
b. 100, Random number, Random number, Random number.
c. Compile error
d. 100, Random number
Answer / vishnu kant gupta
a is correct.
because it should be -
(*functable[0])("%d", i);
(*functable[1])("%d", &i);
(*functable[1])("%d", &i);
(*functable[0])("%d", i);
| Is This Answer Correct ? | 29 Yes | 6 No |
Is this code legal? int *ptr; ptr = (int *) 0x400;
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
main() { char a[4]="HELL"; printf("%s",a); }
#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
main() { 41printf("%p",main); }8
Sir... please give some important coding questions asked by product companies..
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
Write a program to check whether the number is prime and also check if it there i n fibonacci series, then return true otherwise return false
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped