in C Plus Plus by
Q:
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

▼ Show 1 Answer

+1 vote
by

b) -30

Learn More with Madanswer

Related questions

+1 vote
asked Jun 13, 2019 in C Plus Plus by Derya
...