MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? #include #include int main() { struct test { int i; float f; char c; }; struct test *ptr; ptr = (struct test *)malloc(sizeof(struct test)); ptr ->f = 5.5f; printf("%f", ptr->f); return 0; } |
| A. | 5.5 |
| B. | 5 |
| C. | 5.5 |
| Answer» D. | |