-
What will be the output of the following C code?
#include <stdio.h>
struct Cricket_Team
{
int A;
int B;
} t[] = {150, 250, 350, 450, 550};
void function(struct Cricket_Team*);
int main()
{
function(t);
}
void function(struct Cricket_Team t[])
{
printf("%d %d\n", t->A, t[2].B);
}
-
- Compilation Error
- Garbage value
- Undefined behaviour
- 150 0
- None of these
Correct Option: D
150 0