Discuss the binary representation of Char strings What makes

Discuss the binary representation of Char strings. What makes this tricky?
Discuss the binary representation of Char strings. What makes this tricky?
Discuss the binary representation of Char strings. What makes this tricky?

Solution

void strings_to_binary(char* st)
{
// temporary buffer for conversion
char temp[9];

while (*st)
{

// itoa is built in function that converts to bits
itoa(*st, output, 2);

putchar(output);
putchar(\'/n\')
++st;
}
}

output:

strings_to_binary(\'efg\');

01100101
01100110
01100111

 Discuss the binary representation of Char strings. What makes this tricky? Discuss the binary representation of Char strings. What makes this tricky? Discuss t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site