

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct Item { int s; int t; }; void function(struct Item*); int main() { struct Item I = {33, 44}; function(&I); } void function(struct Item *ptr) { printf("%d n", *ptr->s++); } |
A. | 33 |
B. | Compilation Error |
C. | 44 |
D. | Garbage value |
E. | None of these |
Answer» C. 44 | |