我知道 printf 执行后返回一些非零值 {EDIT:returns no. of charecters} 现在在这个例子中我使用了多个 printf 和现在。,
/* As far as i was cocerned Precedence of && is more than ||,
*and these logical operators check from left to right
*So compiler should come to hello and print "hello" then "nice to see you" then "hie"
*as all are true it should print "hola"
*but i wonder, why here the output is only "hie" and "hola"?
*/
#include<stdio.h>
main()
{
if(printf("hie")|| printf("hello")&& printf("nice to see you"))
printf("\thola\n");
}