Top

Discussion

What will be the output of the following C code?

#include 
    typedef int integer;
    int main()
    {
        int i = 10, *ptr;
        float f = 20;
        integer j = i;
        ptr = &j;
        printf("%d\n", *ptr);
        return 0;
    }

 

  • A.Compile time error
  • B.Undefined behaviour
  • C.Depends on the standard
  • D.10

Answer: D

No answer description available for this question.
 

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

Post your comment