Sail E0 Webinar
Question


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;
}
Options:
A .  pdt.month = 12
B .  &pdt.month = 12
C .  d.month = 12
D .  pdt->month = 12
Answer: Option A



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers