baileybryant6542 baileybryant6542
  • 18-03-2020
  • Engineering
contestada

Write a statement to print the data members of InventoryTag. End with newline. Ex: if itemID is 314 and quantityRemaining is 500, print: Inventory ID: 314, Qty: 500

Respuesta :

hamzafarooqi188 hamzafarooqi188
  • 20-03-2020

Answer:

#include <stdio.h>

typedef struct InventoryTag_struct {

int itemID;

int quantityRemaining;

} InventoryTag;

int main(void) {

InventoryTag redSweater;

redSweater.itemID = 314;

redSweater.quantityRemaining = 500;

/* Your solution goes here */

printf("Inventory ID: %d, Qty: %d\n",redSweater.itemID,redSweater.quantityRemaining);

getchar();

return 0;

}

Explanation:

Answer Link

Otras preguntas

y=-3/4x+1 find the slope and y-intercept
Ann entered a race which required a run of 10 km north and a bike of 120 km west. Determine her running speed if she cycled ten times faster than she ran and t
How many subsets does the set {1, 2, 3} have?
How would you algebraically factor x squared minus 15?
If 3 dice are rolled at the same time, what is the probability of all 3 dice showing even face values? (i.e. all 3 dice showing 2, 4, or 6)
Can you solve for t in -100=12t-4?
Which quantity would not be labeled with a vector? A. kilometers/hour B. miles/hour C. miles/gallon D. centimeters/second
Find all zeros (real and complex) for the function f(x)=x^3-5x^2+9x-5
A test has 10 true/false questions. How many different tests can be turned in to the teacher?
How many significant figures are in the number 307? 080?