It shifts the bits in the integer 1 var
positions to the left. So in effect it calculates 2 to the power of var
.
More Related Contents:
- while loop and static variable
- Why is a=4 evaluated as true but b=0 evaluated as false in an if condition?
- Given an executable file, display its complete path [closed]
- What is the behavior of integer division?
- How do function pointers in C work?
- sizeof() operator in if-statement
- close vs shutdown socket?
- What does void* mean and how to use it?
- What is the reason for using a double pointer when adding a node in a linked list?
- Can the linker inline functions?
- using rand to generate a random numbers
- How to compare pointer to strings in C
- How to share semaphores between processes using shared memory
- Share condition variable & mutex between processes: does mutex have to locked before?
- How to clear stdin before getting new input?
- Convert a Static Library to a Shared Library?
- gcc, strict-aliasing, and casting through a union
- Accessing elements of a matrix row-wise versus column-wise
- What does “request for member ‘*******’ in something not a structure or union” mean?
- behaviour of malloc(0)
- Arrow Operator vs. Dot Operator [closed]
- Compiling multiple C files in a program
- The ‘volatile’ keyword in the C language [duplicate]
- dynamic allocation/deallocation of 2D & 3D arrays
- Why is 0 moved to stack when using return value?
- Segmentation fault when allocating large arrays on the stack
- Function declaration inside of function — why?
- how to detect a file is opened or not in c
- How can I malloc a struct array inside a function? Code works otherwise
- How to write/read to FLASH on STM32F4, Cortex M4