Question: Write a function to convert a 2's complement 32 bit integer to a string of '1's and '0's in 2's complement form: void integer2Bits(char bitString[],

Write a function to convert a 2's complement 32 bit integer to a string of '1's and '0's in 2's complement form: void integer2Bits(char bitString[], int a); The integer is passed in the second argument, and the caller provides a string which is passed via the first argument and is where the bit string is stored (in "natural" form as in 3 above). Don't forget to terminate the string with NULL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
