sandy3129
Member level 3
hello friends, how do i do bit slicing and concatenating in C programming, lets suppose i have given inputs int A = 24, int B = 36; the constant A should be represented in first 15 bits of another constant lets suppose C,(from first 0 to 14 bits) and constant B should be represented from C( 16 to 30) of constant C, hence C = x"00240018"; how do i do it in C generically???