感叹号在Objective-C if语句中是什么意思? [英] What does the exclamation mark mean in an Objective-C if statement?
本文介绍了感叹号在Objective-C if语句中是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道if(!anObject)
中的感叹号是什么意思.
I am wondering what the exclamation mark in if(!anObject)
means.
推荐答案
这是布尔型NOT运算符,也称为求反.
It is the boolean NOT operator also called negation.
!true == false;
!false == true;
这篇关于感叹号在Objective-C if语句中是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文