πŸ“Š C Programming
Q. What will be the output of the following C code?
Code:
#include <stdio.h>
typedef struct student
    {
        char *a;
    }stu;
    void main()
    {
        struct stu s;
        s.a = ""hi"";
        printf(""%s"", s.a);
    }
  • (A) h
  • (B) hi
  • (C) varies
  • (D) Compile time error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Compile time error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
192
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate