boost learn study
Monday, March 31, 2014
Simple Structure Program
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 �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment