+ 5

#include <iostream> using namespace std; int main() { int i=2; i=i++; cout<<"Result : " <<i++ + i++; return 0;}

#include <stdio.h> #include<conio.h> int main() { int i=2; i=i++; printf("Result : %d" ,i++ + i++); return 0; } output will be same or not ? if your answer​ yes or no, so tell me why ???

4th May 2017, 10:32 AM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar
2 Respostas
+ 1
I think that the output will be the same. std::cout works like printf, but it doesnt have the same formatting capabilities. P.S. You don't have to write i=i++, just i++ will do the same.
4th May 2017, 1:21 PM
None of your business
+ 1
Reply
5th May 2017, 4:36 PM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar