ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 4 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 08 May 2017 My Price 8.00

Give the output of the following program


Give the output of the following program. Assuming all the desired header files are already included, which are required to run the code.


struct Pixel 
{
            int C, R;
};


void Display(Pixel P)
{
            cout << "Col "<< P.C << " Row " << P.R << endl;
}


int main()
{
            Pixel X = {40,50}, Y, Z;
            Z = X;
            X.C += 10;
            Y = Z;
            Y.C += 10;
            Y.R += 20;
            Z.C -= 15;
            Display(X);
            Display(Y);
            Display(Z);

            return 0;
}

Answers

(11)
Status NEW Posted 08 May 2017 12:05 AM My Price 8.00

-----------

Not Rated(0)