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
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