Examness
Free practice questions for every exam
EN
English
Log In
Sign Up
Home
Practice
Exams
AI Teachers
Interview
Code Lab
Fun Learn
Contact
💬
Give feedback
Code Lab
/
C
/
Intermediate
Intermediate C
2 exercises · in teaching order
1
Reverse an array in place
Write `void reverse(int *a, int n)` that reverses the array in place - no second array.
two pointers
swapping
in-place
10m
2
Count the set bits
Write `long count_bits(unsigned long x)` returning how many bits of `x` are 1.
bitwise AND
shifts
10m
💬
Give feedback