0
What does this code mean?
If (argc != 3 || !atoi(argv[2])) I don't understand what the ! Before atoi does
7 odpowiedzi
+ 2
Hope this might help to understand :
http://www.site.uottawa.ca/~lucia/courses/2131-05/labs/Lab3/CommandLineArguments.html
In short that is related to command line arguments.
+ 1
! is the Not operator and it changes the truth value of that function called 'atoi'.
Meaning, if the function 'atoi' returns a truth value of 'TRUE' then the (!) Not operator will change that 'TRUE' to 'FALSE'.
0
Thanks guys really helpful
0
! Indicates negation.
Argument in if condition is boolean.
0
You should solve it logically
0
It will give you answer in two ways.
Sometimes "TRUE" & "FALSE"
OR"0"&"1"