boost learn study
Tuesday, April 1, 2014
Structure and array
Home
�
C Structures
�
Structure and array
/* =========================================================== File Name : StrArr.c WebSite : http://programmingin-cpp.blogspot.in/ Facebook : https://www.facebook.com/ProgrammingInCPP Twitter ID : https://twitter.com/ProgrammingCPP Created By : Bintu Chaudhary =========================================================== */ /*Program to illustrate the concept of use of an Array within the Structure*/ #include
#include
struct StrArr { name[5]; char city[5]; }; void main() { struct StrArr n[5]; int i=1; clrscr(); printf("Enter the Ten Emp...\n"); for(i=1;i<=5;i++) { scanf("%s%s",n[i].name,n[i].city); } printf("\nAfter the Inputting"); for(i=1;i<=5;i++) { printf("\nName=%s",n[i].name); printf("\n City=%s",n[i].city); } getch(); }
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment