Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Store user input in array of structures (C programming)? Say I have an array of structures: struct info { char name[100]; int number; }; struct

Store user input in array of structures (C programming)?

Say I have an array of structures:

struct info {

char name[100];

int number;

};

struct info person[10];

I prompt the user to enter a name and number. How would I store the name and the number entered by the user into this array of structures (using scanf), particularly as a function? Also, how would I write this array of structures into a text file?

Q55;

the body mass index is used mainly to determine

a. your fat percentage

b. your overrall physical condition

c. how your body weight might affect your health

d. how height correlates with weigh

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Combinatorial Testing In Cloud Computing

Authors: Wei-Tek Tsai ,Guanqiu Qi

1st Edition

9811044805, 978-9811044809

More Books

Students also viewed these Programming questions