What value will the function return?
int f() {
    return 4,(5),6;
}
Explanation
6 will be returned since the comma-separated list of expressions is evaluated from the left to right with the value of the last expression being a result.

good question)

2016 Mar 6, 10:27:50 AM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes