What is the output of the program

Assignment Help Other Subject
Reference no: EM13284597

What is the output of the following program?

#include <iostream>

using namespace std;

int main()

{

     int x1, x2, i, j, k, y, z;

     float f;

     x1 = 1;

     x2 = 1;

     y = 5 + x1--;

     z = 5 + ++x2;

     i = 6 % 4;

     j = 1;

     j += j + 3;

     k = 25 / 2;

     f = (float)((2 / 5) * k);

     cout<<"x1 is "<<x1<<"\nx2 is "<<x2<<"\ni is "

            <<i<<"\nj is "<<j<<"\nk is "<<k<<"\nk is "

            <<k<<"\ny is "<<y<<"\nz is "<<z<<"\nf is "<<f<<endl;

     return 0;

}

Reference no: EM13284597

Questions Cloud

What are the conditions that can create a terrorist : What are the conditions that can create a terrorist? What are the religious, cultural, economic and/or political conditions that can lead to the recruitment and development of terrorists?
Ethical concerns and fairness perception important issues : Why are ethical concerns and fairness perception important issues when designing service pricing schedules and revenue management strategies? What are potential consumer responses to service pricing schedules or policies perceived as unfair?
Create constructor method to intialize private property : Explain what a default constructor is and why it is used. Provide code segment to illustrate a simple class, create a constructor method to intialize a private property, and demonstrate how an object would be instantiated with your constructor.
Privileged communications between her and her attorney : Lisa used her company-provided laptop to exchange email with her attorney. After she quit, she filed a breach of contract claim. The company searched her old laptop and reconstructed her messages. Lisa cried foul, alleging the emails were privileged ..
What is the output of the program : What is the output of the following program?
Job shaaring is a modified work schedulein : Summarize the follwoing passage. "job shaaring is a modified work schedulein which two people share the same job, both annually working half-time.
How many trees should be planted to maximize yield per acre : A pecan grower estimates from past records that if 20 trees are planted per acre, each tree will average 60 pounds of nuts per year. If for each additional tree planted per acre (up to 15) the average yield per tree drops 2 pounds.
Complete risk rigister for subsequent phase of a project : Identify the benefits of a  complete  risk rigister for subsequent phase of a project. Speculate on the consequence of project management without a complete risk register.
The fundamentals of small group communication : Review the advantages and disadvantages of group work. To what extent do these advantages and disadvantages depend on whether the group is a primary, social, self-help, learning, service, public, work, or virtual group?

Reviews

Write a Review

Other Subject Questions & Answers

  Key collaborators

Key collaborators include all of the following except:

  Provide security against fraud

Do you think that it is a wise investment to contract services that provide security against fraud or should it be an in-house department that provides fraud security services? Why?

  All actions are performed for the good

Plato believes that all actions are performed for the good, but due to ignorance some (perhaps many) are harmful to ourselves and others.

  Who would have been most likely to support abolitionism

Who would have been most likely to support abolitionism

  Developing theme throughout the entire event is important

Developing the theme throughout the entire event is important, from the invitation to a follow up thank-you gift or guest survey. Consider how you would develop a theme for a week-long conference for software programmers

  Management of air quality in smog valley.

Management of Air Quality in Smog Valley. Revisit the example problem from class. Assume that a new ambient air quality standard has been introduced for this pollutant so that the maximum ambient concentration at the cities should not exceed 85 µg/m3..

  Dual modes of social cognitive processing

Explain two differences between the dual modes of social cognitive processing.

  Dominant position in world affairs-during the 19th century

During the 19th century, Western society assumed a dominant position in world affairs. How and why did such a change happen? How did non-Western societies respond to the West's new found power?

  The impaired employee and liability

You are the Vice President for Health Services. You have instituted a national search to fill a mid-level management position in your unit, and have appointed a search and screening committee to give you ranked recommendations. The search committee h..

  Compare and contrast brittle and ductile deformation

Compare and contrast brittle and ductile deformation. Explain the nature of the stresses involved and the conditions that result in each type of deformation.  Include three examples for each.

  The concepts and definitions of culture-subculture

The concepts and definitions of culture, subculture, and race are, at a minimum, complex and controversial. Discuss the various definitions and controversies related to them. Provide your own definitions and rationale for these definitions.

  Explaining why man and woman stagger

Why did the man stagger? Why did the woman stagger?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd