code snippet code following:
#include <stdio.h>
#include <stdbool.h>
int test()
{
return (printf("it is test\n"), false);
}
int main()
{
if (false == test())
printf("return result is false\n");
}
The return statement works but I don't know why it can work as i didn't encounter the statement before. Can any body help to explain the usage of return statement in this snippet code?