1.

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
Answer» E.


Discussion

No Comment Found