Write the output of the following …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Write the output of the following C++ program code(assume all necessary header files are
included in program): (3)
Struct Ticket
{
Char Level:
Int Price;
};
Void computer (Ticket &T)
{
If (T. Level==’A’)
T.Price +50;
Else if (T.Level==’A’)
T.Price+=50;
Else if (T. Level==’B’)
T. Price+30;
Else if (T.Level==’C’)
T.Price+=25;
Count<<T. Level<<”::”<<T.Price<<endl;
}
Void main( )
{
Ticket Mon_show[ ]={ {‘C’, 250}, {‘A’,300}, {‘B’,300},
For (int count=2; count>=0;)
{
Computer (Mon_show [count--});
}
}
Posted by N G 6 years, 2 months ago
- 0 answers
ANSWER
Related Questions
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app