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

  Material participation impact deductibility of losses

Evaluate what is and is not included in passive income. Explain how active and material participation impact the deductibility of losses. If more tax returns for taxpayers involved in real estate were audited

  Determine relevance of information

To determine the relevance of information, decide whether a statement provides support for or challenges a conclusion. Provides support: If what the statement relays is true, would it back the conclusion? If the answer is ¿yes,¿ then the statement pr..

  Abbreviations in medical terminology

You are the office manager for a large physician practice. There are registered nurses, physician assistants, laboratory technicians, and X-ray technicians who also work in the office.

  Discusses the role of the project manager or team

Discusses the role of the project manager or team, the organizational setting, the recipient’s approach to project integration management, and obstacles that had the potential of adversely impacting the triple constraints.

  Job satisfaction survey

In a job satisfaction survey, respondents were asked to indicate how many years they had worked for the company. One respondent wrote "ten months" in response to the item. A conversion of the answer to the correct unit of time (years) would be most l..

  Distributive bargaining

What makes integrative bargaining different from distributive bargaining, and how do I identify the issues to be negotiated in integrative bargaining? Please answer in 175 words or less and cite url or references used for class discussion.

  Functionalists and structuralists

Describe how functionalists and structuralists might study a topic in human intelligence. Show how these two approaches illustrate the nomothetic and the idiographic perspectives.

  Issues in case of Kelo vs. City

What were the main issues that the court dealt with in that case How did the court resolve the issue?

  Explain the principal issues of epistemology

Explain the principal issues of epistemology, for example, is how to define knowledge.

  Industry research

To correctly identify opportunities and threats to their product, Marketing Managers need to understand the marketing environment in which the products operate.

  Lifestyle and social organization upper paleolithic people

An archaeologist who wanted to understand the lifestyle and social organization of Upper Paleolithic peoples would get the most useful information by studying

  An environmental engineer suspects mercury contamination

An environmental engineer suspects mercury contamination in an area which contains three lakes and two streams. He will check all five for mercury contamination.

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