T Thành Đạt New member Sep 21, 2021 #1 What will be the output of the following C code? Code: main() { enum resut {pass, fail}; enum result s1,s2; s1=pass; s2=fail; printf("%d",s1); } A. error B. pass C. fail D. 0
What will be the output of the following C code? Code: main() { enum resut {pass, fail}; enum result s1,s2; s1=pass; s2=fail; printf("%d",s1); } A. error B. pass C. fail D. 0
B Bảo Vy Member Sep 21, 2021 #2 Answer: a Explanation: The code shown above results in an error, stating : storage size of s1 and s2 unknown. There is an error in the declaration of these variables in the statement: enum result s1,s2; Upvote 0 Downvote
Answer: a Explanation: The code shown above results in an error, stating : storage size of s1 and s2 unknown. There is an error in the declaration of these variables in the statement: enum result s1,s2;