-
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);
}
-
- 100 200
- 300 400
- 101 101
- Garbage value
- None of these
Correct Option: C
101 101