Question: q3. time limit 1hr An integer array A[n] stores the binary representation of an n-bit number.A[i]=0 if the bit in the i-th position is 0,
An integer array A[n] stores the binary representation of an n-bit number.A[i]=0 if the bit in the i-th position is 0, and 1 otherwise. For example, if n=5,then the number k=6(with binary representation "00110") would be stored as follows: A[4]=0,A[3]=1, A[2]=1, A[1]=0,A[0]=0. Write a C program that reads an integer k from the user and stores its binary representation in array A
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
