Question
#include<stdio.h>
int main()
{
float i=10, *j;
void *k;
k=&i;
j=k;
printf("%f\n", *j);
return 0;
}
The following program reports an error on compilation.
#include<stdio.h>
int main()
{
float i=10, *j;
void *k;
k=&i;
j=k;
printf("%f\n", *j);
return 0;
}
Answer: Option B
Was this answer helpful ?
This program will NOT report any error. (Tested in Turbo C under DOS and GCC under Linux)
The output: 10.000000
Was this answer helpful ?
More Questions on This Topic :
Question 3.
Are the expression *ptr++ and ++*ptr are s....
Submit Solution