1. ## Conversion(?)

I know how to convert the digit to binary but how can i convert string to binary and vice versa?

2. What exactly do you mean by digit and string, and for that matter, binary? Do you plan to store your binary number as a series of 48s and 49s (1s and 0s) in a string? In that case, there's no need to convert from string to binary, but maybe that's not what you want.

3. The binary equvalent of
5=101 now i want the binary equivalent of manasi?
whtaz that?

4. >>5=101 now i want the binary equivalent of manasi?
Like this?
Code:
```#include <stdio.h>
#include <string.h>
#include <limits.h>

static char *dectobin(int dec, char buf[])
{
int i = CHAR_BIT - 1;

memset(buf, '0', CHAR_BIT);
buf[CHAR_BIT] = '\0';

while (dec != 0 && i >= 0)
{
buf[i--] = (char)((dec & 1) + '0');
dec >>= 1;
}

return buf;
}

int main(void)
{
int i;
char buf[CHAR_BIT + 1];
char str[] = "manasi";

for (i = 0; str[i] != '\0'; i++)
{
printf("%s ", dectobin(str[i], buf));
}

printf("\n");

return 0;
}```