MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> struct Company { int c1; char c2; }; int main() { struct Company comp1[] = {10, 91, 30, 90, 52, 95}; struct Company *ptr1 = comp1; int c1 = (sizeof(comp1) / 3); if (c1 == sizeof(int) + sizeof(char)) printf("%d n", ptr1->c1); else printf("Interview Mania"); } |
| A. | Compilation Error |
| B. | Garbage value |
| C. | Interview Mania |
| D. | Nothing |
| E. | None of these |
| Answer» D. Nothing | |