- 1

Int sum=x+y cout <<sum<<x+y<<ends<<;

why this is not possible

23rd Nov 2017, 6:20 AM
Vinod
Vinod - avatar
2 Respuestas
+ 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]
23rd Nov 2017, 6:32 AM
Babak
Babak - avatar
0
but it is not working in placing a answer in question
23rd Nov 2017, 6:33 AM
Vinod
Vinod - avatar