!!(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.
Related Contents:
- Why is scanf() causing infinite loop in this code?
- Comparison operation on unsigned and signed integers
- Why does malloc initialize the values to 0 in gcc?
- Is there a 128 bit integer in gcc?
- printf and long double
- Can I use Intel syntax of x86 assembly with GCC?
- Disable all optimization options in GCC
- What is the use of _start() in C?
- Working of fork() in linux gcc [duplicate]
- When to use earlyclobber constraint in extended GCC inline assembly?
- C optimisation of string literals
- How can I use “sizeof” in a preprocessor macro?
- How to verify if a void pointer (void *) is one of two data types?
- Linking two shared libraries with some of the same symbols
- Why does the C preprocessor interpret the word “linux” as the constant “1”?
- warning: incompatible implicit declaration of built-in function ‘xyz’
- typeof operator in C
- printf not printing on console
- Why am I getting a gcc “undefined reference” error trying to create shared objects?
- Realistic usage of the C99 ‘restrict’ keyword?
- Recommended gcc warning options for C [closed]
- How to include needed C library using gcc?
- C Failing to compile: Can’t find math.h functions [duplicate]
- What are the useful GCC flags for C?
- How many GCC optimization levels are there?
- Creating static Mac OS X C build
- Inline assembly that clobbers the red zone
- Is there a GCC keyword to allow structure-reordering?
- Why do I get a warning every time I use malloc?
- How to check if a given file descriptor stored in a variable is still valid?
- Why does a=(b++) have the same behavior as a=b++?
- `bash: ./a.out: No such file or directory` on running executable produced by `ld`
- How do you get the start and end addresses of a custom ELF section?
- Why “initializer element is not a constant” is… not working anymore?
- execute binary machine code from C
- Declaring an array of negative length
- Enabling strict floating point mode in GCC
- GCC – no warning about an uninitialized array with -O0
- C preprocessor: expand macro in a #warning
- Create statically-linked binary that uses getaddrinfo?
- Status of __STDC_IEC_559__ with modern C compilers
- What does -fwrapv do?
- Why does GCC not warn for unreachable code?
- Overriding C library functions, calling original
- GCC 4.7 Source Character Encoding and Execution Character Encoding For String Literals?
- Where/how to get the “getline” function if it is missing from stdio.h?
- Can GCC not complain about undefined references?
- How do I link object files in C? Fails with “Undefined symbols for architecture x86_64”
- Is there a way to get warned about unused functions?
- Tool to analyze size of ELF sections and symbol