Top

Discussion

The following program reports an error on compilation.

#include
int main()
{
    float i=10, *j;
    void *k;
    k=&i;
    j=k;
    printf("%f\n", *j);
    return 0;
}

 

  • A.True
  • B.False

Answer: B

This program will NOT report any error. (Tested in Turbo C under DOS and GCC under Linux)

The output: 10.000000

No comment is present. Be the first to comment.
Loading…

Post your comment