πŸ“Š C Programming
Q. What will be the output of the following code snippet?
Code:
#include <stdio.h>
struct School {
    int age, rollNo;
};
void solve() {
    struct School sc;
    sc.age = 19;
    sc.rollNo = 82;
    printf("%d %d", sc.age, sc.rollNo);
}
int main() {
    solve();
	return 0;
}
  • (A) 19 82
  • (B) Compilation Error
  • (C) 82 19
  • (D) None of the above.
πŸ’¬ Discuss
βœ… Correct Answer: (A) 19 82

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
192
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
88%
Success Rate