C
0 of 12 solved
12 questions
- Count set bits and spot powers of twoBit manipulationEasyCoding
- malloc vs calloc vs realloc, and what free really doesDynamic memoryEasyConceptual
- Are arrays and pointers the same thing in C?Pointers and arraysEasyConceptual
- Remove duplicates from a sorted array using two pointersPointers and arraysEasyCoding
- Storage classes in C: auto, static, extern and registerStorage classes and scopeEasyConceptual
- Reverse the order of words in a line (in place)Strings and char arraysEasyCoding
- Rotate a square matrix 90° clockwise in place2-D arraysMediumCoding
- Macros vs inline functions: the SQUARE(x) trapPreprocessorMediumConceptual
- const int *p vs int *const p vs const int *const pPointers and constMediumConceptual
- struct vs union, and why sizeof(struct) is bigger than you expectStructures and unionsMediumConceptual
- Write your own atoi with overflow clampingStrings and integer overflowMediumCoding
- What is undefined behaviour? Why is i = i++ + ++i a bad interview answer?Undefined behaviourHardConceptual
