Ad

Chapter - 11: Structures

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


Ad
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

Ad

© 2024 Garbage Valuegarbage value logo