c program for simple structure
Example c program for structure
Program:-
Output:-
Enter town name:Honnavar
Enter state name:karnataka
Enter country name:India
Enter distance from bangalore:285
Town:Honnavar
State:karnataka
country:India
Distance:285.000
Structure in C programming language is a user defined data type that groups logically related information of different data types into a single unit. A structure variable can store multiple variables of different data types of C. Each variable declared in structure is called member.
ReplyDelete