MCQOPTIONS
Saved Bookmarks
| 1. |
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); } |
| A. | Compilation Error |
| B. | Garbage value |
| C. | Undefined behaviour |
| D. | 150 0 |
| E. | None of these |
| Answer» E. None of these | |