Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following statements: int disc=0; int day=1; int total item=2; meamwww disc= (day!= 1) ?disc=2: ((total_item>2) ?disc=10:disc-5); printf(%d , disc); What is the

  

Consider the following statements: int disc=0; int day=1; int total item=2; meamwww disc= (day!= 1) ?disc=2: ((total_item>2) ?disc=10:disc-5); printf("%d ", disc); What is the output when those statements are executed?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

The ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial and Managerial Accounting

Authors: Horngren, Harrison, Oliver

3rd Edition

978-0132497992, 132913771, 132497972, 132497999, 9780132913775, 978-0132497978

More Books

Students also viewed these Programming questions