What is the output of the following code? #include void main() { int marks = 80;...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
What is the output of the following code? #include <stdio.h> void main() { int marks = 80; char grade; switch (marks) } case 80: grade = 'A'; case 70: grade } 'B'; case 60: grade 'C'; default: grade = 'D'; printf("%", grade); P Answer: What is the output of the following code? #include <stdio.h> void main() { int marks = 80; char grade; switch (marks) } case 80: grade = 'A'; case 70: grade } 'B'; case 60: grade 'C'; default: grade = 'D'; printf("%", grade); P Answer:
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
Find the Inverse of a Logarithmic Function Question Find the inverse: f(x) = log(x+2)-3. Present the answer using function notation. Provide your answer below: FEEDBACK V MORE INSTRUCTION
-
Look for a corpotate strategy such as vertical integration and diversification, differentiation, innovation, etc. that about Beauty company Glossier Inc., and describe the strategy and why it is...
-
QUESTION 10 For the problem 7, alter careful evaluation, you have determined that the maximum number of tattoos that you could do in your business is 13 per day, working 50 five-day weeks. More than...
-
There are three general methods of allocating overhead costs: plantwide rates, rates for each expense category, and departmental rates. Describe when each is the most useful.
-
At the end of the year, Mercy Cosmetics' balance of Allowance for Uncollectible Accounts is $500 ( credit ) before adjustment. The balance of Accounts Receivable is $20,000. The company estimates...
-
Koby Company issued \($300,000\) of bonds for \($325,000\). (a) Prepare the journal entry to record the issuance of the bonds, and (b) illustrate how the bonds will be shown on the Koby Company's...
-
The statement of financial position of a business at the start of the week is as follows: During the week the following transactions took place: (a) Sold inventories for 11,000 cash; these...
-
Bond X is a premium bond making semiannual payments. The bond pays a 9 percent coupon, has a YTM of 7 percent, and has 13 years to maturity. Bond Y is a discount bond making semiannual payments. This...
-
8. [10] Give the general solutions to the Cauchy-Euler differential equation x y" + 5xy' + 4y = 0
-
If the a company has a market value of debt of 5 million pound and a market value of equity of 15 million pounds what's is the weight of debt for wacc calculation purpose?
-
D Find the most economic column section for AD in the following loading condition. The end "A" of simply supported beam AB rests on the end "A" of AD, which means AD will have to support the load...
-
A patient weighing 143 lb is to receive a bolus dose of 70units/kg, rounded to the nearest 100 units. The infusion shouldbegin at 17 units/kg. How many units will be needed for the heparinbolus?
-
Gary notices that his production department requires information from the sales division: in turn, the production budget is sent on to other departments. He sees how the budget pieces fit together...
-
The lesson and reading assignments in this unit discuss the relationship between businesses and environmental issues. Society has started to demand businesses take some responsibility for...
-
What are the key considerations for mortgage lenders in assessing borrower creditworthiness and determining optimal loan-to-value (LTV) ratios, debt-to-income (DTI) ratios, and other risk factors in...
-
Please design a print ad for the Google Play store that will provide an introduction to the product. Then explain in one or two paragraphs how the ad supports the IMC campaign. Be sure to also...
-
Answer the following questions: What is the difference between tendon and ligament ? 3 pts Give me a medical term associated with a ligament injury and describe it. 2pts Number your answers from 1...
-
Write the given system without the use of matrices. D) - ()- d (x sin t + 8 (2+ 1)
-
Suppose the Fizzle class has only the data members shown: class Fizzle { private: double bubbles[4000]; ... }; Why would this class not be a good candidate for a user-defined move constructor? What...
-
Start with the following class declaration: // base class class Cd { // represents a CD disk private: char performers[50]; char label[20]; int selections; // number of selections double playtime; //...
-
Write a program that requests the user to enter three times for the 40-yd dash (or 40-meter, if you prefer) and then displays the times and the average. Use an array object to hold the data. (Use a...
-
Baldwin Corporation is involved in the business of injection molding of plastics. It is considering the purchase of a new computer-aided design and manufacturing machine for \($481,000\). The company...
-
Novak Company is considering three capital expenditure projects. Relevant data for the projects are as follows Annual income is constant over the life of the project. Each project is expected to have...
-
Bosworth Company is considering a capital investment of \($168,000\) in additional productive facilities. The new machinery is expected to have a useful life of 6 years with no salvage value....
Study smarter with the SolutionInn App