how to multiply two number taking input as a string
(considering sum and carry )
Answer Posted / ravi
char a[3];
int i;
char s[3];
for(i=1;i<=3;i++)
s[i]=a[i]*2;
printf("%s",s[i]);
Is This Answer Correct ? | 5 Yes | 18 No |
Post New Answer View All Answers
Explain what is the purpose of "extern" keyword in a function declaration?
What is the difference between typedef struct and struct?
Do string constants represent numerical values?
What is main () in c language?
Who developed c language and when?
What is #include cctype?
What is the difference between %d and %i?
Tell us two differences between new () and malloc ()?
What is a global variable in c?
Write a program with dynamically allocation of variable.
What is meant by 'bit masking'?
What tq means in chat?
How many bytes are occupied by near, far and huge pointers (dos)?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Explain can you assign a different address to an array tag?