+ 1
What is output of this coding? Please help me.
#include <iostream> using namespace std; int main(){ int x = (1,2,3,4,5); int y[3]; y[0] = x++; y[1] = ++x; y[2] = --x; cout << y[2] + y[1] + y[0]; return 0; }
5 Respostas
+ 2
18
+ 1
Error because 'Cout' is unknown and the using directive is in the same line as the include directive, 18 if you fix those errors.
+ 1
x = 5; y[0]= 5; y[1]= 7; y[2]= 6
Output: 6+7+5= 18
0
Thanks 👍👍