main()
{
char *cptr,c;
void *vptr,v;
c=10; v=0;
cptr=&c; vptr=&v;
printf("%c%v",c,v);
}
Answer / susie
Answer :
Compiler error (at line number 4): size of v is Unknown.
Explanation:
You can create a variable of type void * but not of type
void, since void is an empty type. In the second line you
are creating variable vptr of type void * and v of type void
hence an error.
Is This Answer Correct ? | 10 Yes | 1 No |
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }
Write a routine to implement the polymarker function
main() { int a[10]; printf("%d",*a+1-*a+3); }
What is "far" and "near" pointers in "c"...?
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
main(){ int a= 0;int b = 20;char x =1;char y =10; if(a,b,x,y) printf("hello"); }
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
why java is platform independent?
Which version do you prefer of the following two, 1) printf(“%s”,str); // or the more curt one 2) printf(str);
#ifdef something int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00