Which of the following structure declaration will throw an error?
A. struct temp{}s;
main(){}
B. struct temp{};
struct temp s;
main(){}
C. struct temp s;
struct temp{};
main(){}
D. None of the mentioned
Answer: Option D
A. struct temp{}s;
main(){}
B. struct temp{};
struct temp s;
main(){}
C. struct temp s;
struct temp{};
main(){}
D. None of the mentioned
Answer: Option D
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above
Join The Discussion