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 > ProgrammingPosted 08 May 2017My Price8.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);