Question:

int g(int p)
{
     printf("%d", p);
     return p;
}
int h(int q)
{
     printf("%d", q);
     return q;
}
void f(int x, int y)
{
     g(x);
     h(y);
}
int main ()
     f(g(10), h(20));
}
What is the o/p printed ? (parameters all evaluated from left to right)

Updated On: Feb 12, 2024
Hide Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

The answer is 10,20,10,20.
Was this answer helpful?
0
0