ISRO exam 2017 – Question 41 with Solution
In this video we are going to discuss another question which was asked in the exam of ISRO
41. What is the output of this C++ program?
#include {iostream}
using namespace std; void square (int *x)
{
*x = (*x)++ * (*x);
}
void square (int *x, int *y)
{
*x = (*x) * –(*y);
}
int main ( )
{
int number = 30; square(&number, &number); cout {{ number;
return 0;
}
(a) 910
(b) 920
(c) 870
(d) 900