Sunday, 4 January 2015

Programming Quiz-47


main()
{
  int i;
  float *pf;
  pf = (float *)&i;
  *pf = 100.00;
  printf("%d", i);
}

a. Runtime error.
b. 100
c. 0

d. None of the above 

Answer: C

No comments:

Post a Comment