Top

Discussion

What will be the output of the following C code?

#include 
    typedef struct student
    {
        char *a;
    }stu;
    void main()
    {
        stu s;
        s.a = "hi";
        printf("%s", s.a);
    }s

 

  • A.Compile time error
  • B.Varies
  • C.hi
  • D.h

Answer: A

No answer description available for this question.
 

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

Post your comment