- 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: Which of the following statements correctly assigns 12 to month using pointer variable pdt?
#include<stdio.h>
struct date
{
int day;
int month;
int year;
};
int main()
{
struct date d;
struct date *pdt;
pdt = &d;
return 0;
}
A pdt.month = 12
B &pdt.month = 12
C d.month = 12
D pdt->month = 12
ANS:A - pdt.month = 12 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.