- Memory Allocation - General Questions
- Memory Allocation - Find Output of Program
- Memory Allocation - Point Out Errors
- Memory Allocation - Point Out Correct Statements
- Memory Allocation - True / False Questions
- Memory Allocation - Yes / No Questions


Memory Allocation - Programming
Q1: What will be the output of the program?
#include<stdio.h>
#include<stdlib.h>
int main()
{
union test
{
int i;
float f;
char c;
};
union test *t;
t = (union test *)malloc(sizeof(union test));
t->f = 10.10f;
printf('%f', t->f);
return 0;
}
A 10
B Garbage value
C 10.100000
D Error
ANS:A - 10 No answer description is available. Let's discuss. |


For help Students Orientation
Mcqs Questions
One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.