Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ If the answers are correct i will give thumbsup 1. What is the output of each statement? a. cout <

C++ If the answers are correct i will give thumbsup

1. What is the output of each statement?

a. cout<<|<<5<<|;

b. cout<<|<

c. cout<<|<

d. cout<<|<

e. cout<<|<

f. cout<<|<

g. cout<<|<

d. cout<<|<

2.If PI has been declared as: const double PI = 3.14159, then the following statement:

PI = 3.1 does what?

a. causes an execution error b. causes a compile error

c. causes a compile warning d. does not generate an error

3. If a and b are ints and a=4 and b=9, what value is assigned to a for each? Answer each part using the original values of 4 and 9.

a. a = 3*b++; b. a= a+b; c. a++; d. a = a/b; e. a--; f. a= ++a+a; g. a=b%6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

1. Discuss the five types of learner outcomes.

Answered: 1 week ago