Chapter - 11: Structures

With reference to the below declaration which of the following refers to seconds correctly.


C
Sections
4
Exercises
struct time
{
	int hours;
	int minutes;
	int seconds;
} t;
struct time *pt;
pt = &t;

1. pt.seconds
2. (*pt).seconds
3. time.seconds
4. pt->seconds


Ans:
2. (*pt).seconds
4. pt->seconds


© 2021 Garbage Valuegarbage value logo