What will be the output of the following c++ code

Assignment Help Computer Engineering
Reference no: EM1331535

1. What is the output of the following C++ code?

int x;
int y;
int *p = &x;
int *q = &y;
*p = 35;
*q = 98;
*p = *q;
cout << x << " " << y << endl;
cout << *p << " " << *q << endl;

2. What is the output of the following C++ code?

int x;
int y;
int *p = &x;
int *q = &y;
x = 35; y = 46;
p = q;
*p = 78;
cout << x << " " << y << endl;
cout << *p << " " << *q << endl;

3. What is the output of the following C++ code?

int *p;
int *q;
p = new int;
q = p;
*p = 46;
*q = 39;
cout << *p << " " << *q << endl;

Reference no: EM1331535

Questions Cloud

Explain advertising for moving traditional business : Explain which are the best advertising strategies for transforming regular businesses to Internet marketplace.
A viable strategy to implement : Consider who the merger or acquisition would involve, the market conditions making it a good choice, and the type of strategy that would make it a success.
Assume an individual purchases of good : Assume an individual purchases 500 units of good and spends 10,000 dollars.
Explain transformation of avon into a leading company : Andrea Jung is the CEO for Avon Products Inc. What can she do to accelerate the transformation of Avon into a leading company? What strategic plans can be used to accelerate growth?
What will be the output of the following c++ code : What will be the output of the following C++ code.
Elucidate the interpretation of the coefficient : Elucidate the interpretation of the coefficient b. Do the demand functions satisfy the relevant homogeneity conditions.
Explain consumer buying patterns : The marketing manager for a manufacture of specialty watches designed for runners. ask - Would you sell these items through retail stores or would you try to direct marketing * either alone or in combination with retail distribution) ? Why?
Make program to gauge the expected cost of an item : It is tough to make a budget that spans several years, because prices are not stable. If your company needs 200 pencils per year, you cannot simply use this year's price as the price of pencils two years from now. Because of inflation the cost is ..
Explaining company overpay their income taxes : Why might a company overpay their income taxes?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why compression algorithms are frequently used in forensics

why Compression algorithms are frequently used in forensics.how they can potentially affect evidence, paying particular attention to algorithms implemented by forensic tools. You need to be clear yet concise.

  Discuss the different types of project feasibility factors

List and discuss the different types of project feasibility factors.

  What are the serious challenges faced

What are the serious challenges faced when creating in-house software applications and what is the best process of training users on new software.

  Find the disadvantages of low quality

What are the advantages of high quality and the disadvantages of low quality.

  Developing the new websites

A developer obtained the following three rules in specification for a new Web site. If a Web page consists of the word “painting”, then it also comprises either “acrylic” or “oil”.

  Listing the significant investigative approaches

What do you think are the most significant investigative approaches in preparation for these cyber crime cases and what could be the result of the poor investigator planning and preparation before start of the digital evidence collection, and proc..

  Developing the function to list software installed on system

Write down a function which list the software (name and vendor) installed over the computer specified by the input argument. The function should output the list to screen and output the list to the CSV file.

  Specific mobile wireless solutions

Assess a problem, diagnose its sources, and recommend a course of action. Some examples are the recommendation for specific mobile wireless solutions.

  Addressing and naming model

Sketch a plan for development of the addressing and the naming model in an environment of following given scenario: Ten (10) departments in the 1,000-employee organization. Equal separation by geography

  Define the type of input data used

express the type of input data used for a business related function.

  Implementing stringed musical instrument class

Generate a Java test class which simulates utilizing your instrument class. a) Construct 10 examples of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments.

  Developing an object-oriented model for bookstore

The bookstore wishes you to develop an object-oriented model for the new bookstore information management system.

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