3. How to initialize a structure.
Answers
Answered by
1
Explanation:
Way 1 : Declare and Initialize. struct student { char name[20]; int roll; float marks; }std1 = { "Pritesh",67,78.3 }; ...
Way 2 : Declaring and Initializing Multiple Variables. ...
Way 3 : Initializing Single member. ...
Way 4 : Initializing inside main.
Answered by
1
hey mate here is your answer...
Structure Initialization
- Way 1 : Declare and Initialize. struct student { char name[20]; int roll; float marks; }std1 = { "Pritesh",67,78.3 }; ...
- Way 2 : Declaring and Initializing Multiple
- Way 3 : Initializing Single member. ...
- 4 : Initializing inside main.
hope this answer helps you...❤❤✌✌
Similar questions