【发布时间】:2013-10-15 02:13:09
【问题描述】:
我写了一些代码如下,而函数DeleteNextNode返回一个名为Position的类型:
return (the_checked_position->next == position_to_delete) ?
DeleteNextNode(the_checked_list, the_checked_position) :
printf("%s\n", "No such node in the list, delete failed."), NULL;
但语法 checher 插件会发出警告:pointer/integer type mismatch in conditional expression ('Position' (aka 'struct Node *') and 'int')
那么表达式的类型必须和C语言中的条件表达式相同吗?
我的英语很差,所以如果有必要你可以编辑我的问题。谢谢!
【问题讨论】: