+2 votes
in C Plus Plus by
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

1 Answer

+1 vote
by

b) -30

Related questions

0 votes
asked Jun 9, 2020 in C Plus Plus by Robindeniel
+2 votes
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
...