- 1
Int sum=x+y cout <<sum<<x+y<<ends<<;
why this is not possible
2 Answers
+ 15
It's absolutely possible, my friend. For example, the following snippet does its job without any problem.
#include <iostream>
int main() {
int x = 1, y = 2;
int sum = x + y; // 1 + 2 = 3
std::cout << sum << x + y << std::endl; // 33
}
Output : 33
[http://cpp.sh/92cvo]
0
but it is not working in placing a answer in question