Discussion :: C++ - MCQs
-
What is the output of this program?
#include < stdio.h >
using namespace std;
int main()
{
int array[] = {10, 20, 30};
cout << -2[array];
return 0;
}
Answer : Option B
Explanation :
It's just printing the negative value of the concern element.
Be The First To Comment