Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Create structure

0 votes
asked Apr 27, 2018 by anonymous

Create structure for Dmart items having members like id, name, expiry date and price. Accept record of 5 items and display them using function

1 Answer

0 votes
answered Apr 28, 2018 by DaveRose
struct Dmart

{

    int id;

   string name;

  string exp_date;    //exp_date is made string for simplicity

float price;

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...