

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct Team { int a; int b; }; void function(struct Team*); int main() { struct Team t1[] = {100, 200, 300, 400}; function(t1); } void function(struct Team t2[]) { printf("%d %d n", t2->a, ++t2->a); } |
A. | 100 200 |
B. | 300 400 |
C. | 101 101 |
D. | Garbage value |
E. | None of these |
Answer» D. Garbage value | |