!!(x)
forces it to be either 0 or 1. 0 remains 0, but any non-zero value (which would be ‘true’ in a boolean context) becomes 1.
More Related Contents:
- Can’t compile C program on a Mac after upgrade to Mojave
- Is there a 128 bit integer in gcc?
- Can I use Intel syntax of x86 assembly with GCC?
- Scanf skips every other while loop in C
- Stack allocation, padding, and alignment
- Is an empty initializer list valid C code?
- Working of fork() in linux gcc [duplicate]
- How does GCC implement variable-length arrays?
- Where is PATH_MAX defined in Linux?
- How to verify if a void pointer (void *) is one of two data types?
- typeof operator in C
- Recommended gcc warning options for C [closed]
- Why is the maximum size of an array “too large”?
- “undefined reference to `pow'” even with math.h and the library link -lm [duplicate]
- Build .so file from .c file using gcc command line
- How Can I debug a C program on Linux?
- How to place a variable at a given absolute address in memory (with GCC)
- Implementation of nested functions
- In GNU C inline asm, what are the size-override modifiers for xmm/ymm/zmm for a single operand?
- Why do I get different results when I dereference a pointer after freeing it?
- How can a shared library (.so) call a function that is implemented in its loader code?
- Yet Another MinGW “gcc: error: CreateProcess: No such file or directory”
- An alternative for the deprecated __malloc_hook functionality of glibc
- Implementation of sizeof operator
- Standard C library in mingW
- Pointer arithmetic when void has unknown size [closed]
- Returning struct containing array
- Compiling a C program that uses OpenGl in Mac OS X
- Why does malloc allocate a different number of bytes than requested?
- & operator optional in function pointer assignment