Hi ,

Could you please help me understand what the "test" function do ?

test(15,8) >> gives 16

test(7,15) >> gives 17

thanks

Code:#include <stdio.h> int test(unsigned int n ,unsigned int m); int main() { unsigned int k; k=test(15,8); printf("k= %d\n",k); // k=16 return 0; } int test(unsigned int n ,unsigned int m) { return (n+m -1)& ~ (m-1); }