- UNIT-I (Array)


strlen(),strcpy(), strcat() ,strcmp()








Accessing field
Accessing data fields within structs
The dot operator ( period ) is used to access named fields within struct variables:
john.nClasses = 4; totalGPA += sue.gpa;
How to access structure elements?
Structure members are accessed using dot (.) operatorOutput:
x = 20, y = 1
Advertisements
No comments:
Post a Comment