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

how do we as humans distribute the limited resources available
hich macromolecule provides the blueprint for living things, by storing and transmitting genetic information?
What is the capillary action of water?
Alex has $44x. He bought y sets of dishes. Each set costs $32. Write an alebraic expression for the amount of money he has now.
Solve for h V=nr^2h as in nr squared times h
Which ordered pairs in the form (x, y) are solutions to the equation (x + 7)y = 10? Choose all answers that are correct.  A.(−9, −5)  B.(−8, 10)  C.(−2, 2)  D.(
C=πd for d pls show all steps
how to factor 21-7t+3r-rt
45 is 60% percent of what number
What is the next three terms for 4,7/4,-1/2,-11/4,...