Problem
Write C expressions to generate the bit patterns that follow, where ak represents k repetitions of symbol a. Assume a w-bit data type. Your code may contain references to parameters j and k, representing the values of j and k, but not a parameter representing w. Using constants such as INT_MIN and INT_MAX is not allowed since it is an indirect reference to the value of w.
Bit Pattern A. 1w-k0k
Bit Pattern B. 0w-k-j1k0j
Your C expressions should be programmed in .c file with sample tests.
Your expression should follow the bit-level integer coding rules. This means solutions including loops are not valid.