Home
About Us
Privacy Policy
Terms and Conditions
Copyright
Contact Us
Register
Sign In
Search
Questions
aatif5
@aatif5
September 2021
1
32
Report
Write a program in c language to showing all detail about 5 different mobile company's using Array of Structure
Answers & Comments
digi18
#include <stdio.h>
#include <conio.h>
#include<string.h>
struct mobile {
int id;
char name [30];
char os [10];
char country [15];
} ;
void main () {
int i ;
struct mobile detail [4];
detail [0].id = 1 ;
strcpy(detail [0].name, "IPhone");
strcpy(detail [0].os, "ios");
strcpy(detail [0].country, "America");
detail [1].id = 2;
strcpy(detail [1].name, "Samsung");
strcpy(detail [1].os, "Android");
strcpy(detail [1].country, "South Korea");
detail [2].id = 3 ;
strcpy(detail [2].name, "One Plus");
strcpy(detail [2].os, "Android");
strcpy(detail [2].country, "China");
detail [3].id = 4 ;
strcpy(detail [3].name, "Nokia");
strcpy(detail [3].os, "Android");
strcpy(detail [3].country, "Finland");
detail [4].id = 5;
strcpy(detail [4].name, "Gionee");
strcpy(detail [4].os, "Android");
strcpy(detail [4].country, "China");
for (i = 0; i<5;i++)
{
printf ("id = %d \n",detail [i].id);
printf ("Name = %s\n",detail [i].name);
printf ("Os = %s\n",detail [i].os);
printf ("Country = %s\n",detail [i].country);
}
getch ();
}
Thanks
1 votes
Thanks 1
aatif5
how can I Mark it?
aatif5
don't know
aatif5
I'm glad to got expert like you
aatif5
thanks no needed...
Add an Answer
Please enter comments
Please enter your name.
Please enter the correct email address.
Agree to
terms of service
You must agree before submitting.
Send
More Questions From This User
See All
aatif5
September 2021 | 0 Replies
what is array in C language?...
Answer
aatif5
September 2021 | 0 Replies
Write a C program to find five patient fever records time to time using array...
Answer
aatif5
September 2021 | 0 Replies
what is bullian algebra?...
Answer
aatif5
August 2021 | 0 Replies
what is reverse number?...
Answer
aatif5
August 2021 | 0 Replies
Please give me it's solution... thanku!...
Answer
aatif5
April 2021 | 0 Replies
write a c program to check weither given is Armstrong or not...
Answer
Recommend Questions
normaica19
November 2022 | 0 Replies
pasagot ngayon na ito ipapasa please
faithvalerieturno
November 2022 | 0 Replies
how do early beliefs about constellations effect human culture
Muning1027
November 2022 | 0 Replies
yung tama po pls kailangan ko na bukas na talaga po submit ng modules ko
neshthmd
November 2022 | 0 Replies
is a disease causing organism that lives in humans or other animals and derives ...
gamboelise83
November 2022 | 0 Replies
or directionbf361c2d468f8ffa07252b7f7f4e2a8d 39180
laimarnisle
November 2022 | 0 Replies
What are the possible solution that may help the preservation of our flora and f...
duermejhonber
November 2022 | 0 Replies
why are there differrence between the colling rates of sand and water
namronlamoste24
November 2022 | 0 Replies
supernova elements form...
princeclarkcasipe30
November 2022 | 0 Replies
It is responsible for the extractions og energy from the food we eat...
faderonprincessmae
November 2022 | 0 Replies
please help me if you help me i will follow you
×
Report "Write a program in c language to showing all detail about 5 different mobile com..."
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
Helpful Links
About Us
Privacy Policy
Terms and Conditions
Copyright
Contact Us
Helpful Social
Get monthly updates
Submit
Copyright © 2024 EHUB.TIPS team's - All rights reserved.
Answers & Comments
#include <conio.h>
#include<string.h>
struct mobile {
int id;
char name [30];
char os [10];
char country [15];
} ;
void main () {
int i ;
struct mobile detail [4];
detail [0].id = 1 ;
strcpy(detail [0].name, "IPhone");
strcpy(detail [0].os, "ios");
strcpy(detail [0].country, "America");
detail [1].id = 2;
strcpy(detail [1].name, "Samsung");
strcpy(detail [1].os, "Android");
strcpy(detail [1].country, "South Korea");
detail [2].id = 3 ;
strcpy(detail [2].name, "One Plus");
strcpy(detail [2].os, "Android");
strcpy(detail [2].country, "China");
detail [3].id = 4 ;
strcpy(detail [3].name, "Nokia");
strcpy(detail [3].os, "Android");
strcpy(detail [3].country, "Finland");
detail [4].id = 5;
strcpy(detail [4].name, "Gionee");
strcpy(detail [4].os, "Android");
strcpy(detail [4].country, "China");
for (i = 0; i<5;i++)
{
printf ("id = %d \n",detail [i].id);
printf ("Name = %s\n",detail [i].name);
printf ("Os = %s\n",detail [i].os);
printf ("Country = %s\n",detail [i].country);
}
getch ();
}
Thanks