Login
Remember
Register
Ask a Question
What is the output of the given program?
+2
votes
asked
Jan 21, 2021
in
C Plus Plus
by
SakshiSharma
What is the output of the given program?
#include < stdio.h >
using namespace std;
int main()
{
int array[] = {10, 20, 30};
cout << -2[array];
return 0;
}
a) -15
b) -30
c) Compiler error
d) Garbage value
#c
-program
#program-output
Please
log in
or
register
to answer this question.
1
Answer
+1
vote
answered
Jan 21, 2021
by
SakshiSharma
b) -30
...