What are the values of X[i] and X[i+1] after code corresponding to the following code is run?
int A = 100, B = 200, C = 300;
X[i] = A;
X[i+1] = B;
C = X[i];
X[i] = X[i+1];
X[i+1]= C
What is the output of the following code?
int N = 5;
int A = 6;
If (N >= 5)
If ( N > 5 || A == 2 )
Cout<<A;
Else
Cout<<N;
5 years ago
Answer
NOT RATED
Purchase the answer to view it
