CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Logical NOT of Zero and Nonzero

C code walkthrough · Question 17
easyOperators

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 int x = 0;
4 printf("%d %d\n", !x, !5);
5 return 0;
6}

Your answer