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 = 2.5f; printf("%f", ptr->f); return 0; }

A. Compilation error
B. 2.5
C. Garbage value
Answer» C. Garbage value


Discussion

No Comment Found