Simple Structure Program C Programming Home » C Structures » Simple Structure Program /* =========================================================== File Name : SimpleStr.c WebSite : http://programmingin-cpp.blogspot.in/ Facebook : https://www.facebook.com/ProgrammingInCPP Twitter ID : https://twitter.com/ProgrammingCPP Created By : Bintu Chaudhary =========================================================== */ #include #include struct str { char name[10],city[20]; }; void main() { struct str obj1={"Bintu","Muktsar"}; clrscr(); printf("Name=%s",obj1.name); printf("\n City=%s",obj1.city); getch(); } Note:- struct is the keyword which we can't use as a variable. Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon