CP I/O Q28

0. What is the output of the following program segment?
void max { int x, int y, int m)
{ if (x > 5) m = x;
 else m = y;
}
 int main()
{
int i = 20, j = 5, k = 0;
 max(i, j, k ); printf("%d", k) ;
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *