Sail E0 Webinar
Question


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;
}
Options:
A .  True
B .  False
Answer: Option B

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 ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers