Build C statements to accomplish each of the following: a) Define a structure called ingredients containing float variable flour and int array colourings with 2 colours b) Define ingred to be a...


Programming in Language C


Build C statements to accomplish each of the following:<br>a) Define a structure called ingredients containing float variable flour and int array<br>colourings with 2 colours<br>b) Define ingred to be a synonym for the type struct ingredients.<br>c) Use ingred to declare variable cake to be of type struct ingredients.<br>d) Define a pointer peake to point to cake.<br>e) Prompt the user to enter the amount of flour using cake.<br>f) Prompt the user to enter the coloring numbers, which can range from 1 to 9.<br>g) Using pcake, display the amount of flour<br>

Extracted text: Build C statements to accomplish each of the following: a) Define a structure called ingredients containing float variable flour and int array colourings with 2 colours b) Define ingred to be a synonym for the type struct ingredients. c) Use ingred to declare variable cake to be of type struct ingredients. d) Define a pointer peake to point to cake. e) Prompt the user to enter the amount of flour using cake. f) Prompt the user to enter the coloring numbers, which can range from 1 to 9. g) Using pcake, display the amount of flour

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here