Examness

Intermediate C

2件の課題 · 学習順

  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