Content text structureppt.pptx
Need Of Structure Till, now we have to stored value in variable and array. Variables stored single value at a time. And array stored multiple value but all of same datatype. But in real life, there are situations where we need to store data item but all data item datatypes are not same. Suppose Book is a collection of data item such as title, author, price.
Syntax :- struct structure_name { data_type member1; data_type member2; ………………………. }; We can define structure any where in the Program. Name of a structure Introduce a structure Structure Defination Ended with semicolon