

MCQOPTIONS
Saved Bookmarks
1. |
What will be the output of the following C code?#include <stdio.h> struct furniture { int a; int b; }; void fun(struct furniture*); int main() { struct furniture frn1 = {12, 22}; fun(&frn1); } void fun(struct point *ptr) { printf("%d n", *ptr.a++); } |
A. | Compilation Error |
B. | 12 |
C. | Segmentation fault/code crash |
D. | 22 |
E. | None of these |
Answer» B. 12 | |