+ 2
problem in understanding source code
hey!I have recently read the program about converting binary numbers in 2's complement where i found a thing which says binary[i]! ='\0'. can anyone out there tell me please, what does it mean??
7 Respostas
+ 2
Calvin Thomas 😁tysm
+ 1
'\0' represents null character, So it's checking whether the character is null or not.
+ 1
Krishna Dhulipalla tysm😊
0
Iffat Well, here's a better alternative for your code: !!binary[i]
# Hope this helps
0
Martin Taylor hey sorry for ur inconvenience! and presumably u have given proper guidance tysm 😁