MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following?#include#includeint main(){union newtest {int i;float f;char c;};union newtest* t;t = (union newtest*)malloc(sizeof(union newtest));t->f = 18.90f;printf("%f", t->f);return 0;} |
| A. | 18.9 |
| B. | Newtest |
| C. | Syntax error |
| D. | 18.9 |
| Answer» B. Newtest | |