Examness
हर परीक्षा के निःशुल्क अभ्यास प्रश्न
HI
हिन्दी
लॉग इन
साइन अप
होम
अभ्यास
परीक्षाएँ
AI शिक्षक
इंटरव्यू
कोड लैब
मज़ेदार सीख
संपर्क
💬
प्रतिक्रिया दें
कोड लैब
/
C
/
Intermediate
Intermediate C
2 अभ्यास · सिखाने के क्रम में
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
💬
प्रतिक्रिया दें