Computer Science, asked by Sonalistar2531, 10 months ago

Write a structure specifications in c++ for the record given below:
Code : a string of 5 characters (including null character)
Desc : a string of 25 characters(including null character)
Cost : integer
Margin : integer

Answers

Answered by busybalaji02pbwcoq
2

Answer:

/*I assumed the structure name as 'question' since structure name has not been provided and the object as 'obj' which is not an array*/

Explanation:

struct question

{

 char Code[5],Desc[25];

  int Cost,Margin;

 }obj;

/*Hope this helps.*/

Similar questions