元芳怎么了
你是对的。这是两个不。要了解为什么要这样做,请尝试以下代码:#include <stdio.h>int foo(const int a){ return !!a;}int main(){ const int b = foo(7); printf( "The boolean value is %d, " "where 1 means true and 0 means false.\n", b ); return 0;}它输出The boolean value is 1, where 1 means true and 0 means false. 如果删除!!,则输出The boolean value is 7, where 1 means true and 0 means false.