- UNIT-I (Array)
strlen(),strcpy(), strcat() ,strcmp()
Definition
Macro substitution directives
File inclusion directives
Conditional compilation
Bitwise Operators
Shift operators
Masks
Bitfield
Macro substitution directives
File inclusion directives
Conditional compilation
Bitwise Operators
Shift operators
Masks
Bitfield
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
कोई टिप्पणी नहीं:
एक टिप्पणी भेजें