What is the output of the following C11 code?int x = 15;int y = 3;if (x + y > 17 || y - x < 20){y = x - y;x = y + x;cout << x << " " << y << " " << x + y << " " << y - x << endl;}else{x = y - x + y %5;cout << x << " " << y << " " << x - y << " " << x + y << endl;}
What is the output of the following C11 code?int x = 15;int y = 3;if (x + y > 17 || y - x < 20){y = x - y;x = y + x;cout << x << " " << y << " " << x + y << " " << y - x << endl;}else{x = y - x + y %5;cout << x << " " << y << " " << x - y << " " << x + y << endl;}
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
What is the output of the following C11 code?
int x = 15;
int y = 3;
if (x + y > 17 || y - x < 20)
{
y = x - y;
x = y + x;
cout << x << " " << y << " " << x + y << " " << y - x << endl;
}
else
{
x = y - x + y %5;
cout << x << " " << y << " " << x - y << " " << x + y << endl;
}
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images