Top

Discussion

What is the output of this C code?

int main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
return 0;
}

 

  • A.Compile time error
  • B.Segmentation fault/runtime crash
  • C.10
  • D.Undefined behaviour

Answer: A

No answer description available for this question.
 

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

Post your comment