- Structures, Unions, Enums - General Questions
- Structures, Unions, Enums - Find Output of Program
- Structures, Unions, Enums - Point Out Errors
- Structures, Unions, Enums - Point Out Correct Statements
- Structures, Unions, Enums - True / False Questions
- Structures, Unions, Enums - Yes / No Questions


Structures, Unions, Enums - Programming
Q1: What will be the output of the program in 16-bit platform (under DOS)?
#include<stdio.h>
int main()
{
struct node
{
int data;
struct node *link;
};
struct node *p, *q;
p = (struct node *) malloc(sizeof(struct node));
q = (struct node *) malloc(sizeof(struct node));
printf('%d, %d\n', sizeof(p), sizeof(q));
return 0;
}
A 2, 2
B 8, 8
C 5, 5
D 4, 4
ANS:A - 2, 2 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.