is there a simple way to declare a line of zeros and ones as binary code in c? i have written a program that converts integers to binary code but it is a character string. i am trying to write a...
Type: Posts; User: bpf
is there a simple way to declare a line of zeros and ones as binary code in c? i have written a program that converts integers to binary code but it is a character string. i am trying to write a...
actually after looking at the loop, i wasn't paying attention to what it was doing. i had it reading the string from left to right which isn't correct obviously
got it working, thanks!
i wrote a program that was supposed to run a function that makes a conversion of inter digits to binary
when i try to compile the program, the following errors come up:
int_to_bin.c:33: error:...
until the remainder goes to 1 or zero
so the for loop will find the highest multiple of two and subtract it from the remainder until it reaches the 'one's' spot
The program is supposed to count the number of bits set by an integer. for example: 5 is 00000101 and has two bits set. compiling the program with debug statements makes me think that the program...
what do i need to put in this to make a prototype. i thought that the declaration of a function was were the parameters were defined. like: function( parameter1, parameter2, .....)
i am trying to write a program that counts the number of times that a character appears in an array
the code reads:
/********************************************************
* *
*...