Examness

Intermediate C

2 latihan · dalam urutan pembelajaran

  1. 1Reverse an array in placeWrite `void reverse(int *a, int n)` that reverses the array in place - no second array.two pointersswappingin-place10m
  2. 2Count the set bitsWrite `long count_bits(unsigned long x)` returning how many bits of `x` are 1.bitwise ANDshifts10m