0

what does if (!flag) means ??

14th Jul 2016, 10:08 AM
Sandeep reddy
Sandeep reddy - avatar
3 Antworten
0
flag , - + # 0. all are ..
14th Jul 2016, 10:14 AM
abhijeet Makwana
abhijeet Makwana - avatar
0
if(!flag) means that if flag is not equal to 0......so if flag!=0 then the if block will be executed otherwise the corresponding else block will be executed.
14th Jul 2016, 2:27 PM
Aastha Aneja
Aastha Aneja - avatar
0
flag is a boolean and is probably set in the previous lines of the code. if(!flag) is the same as if(flag==false)
17th Jul 2016, 6:18 PM
Genti Perja