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
What is the purpose of void in c?
Tell us bitwise shift operators?
What is the value of uninitialized variable in c?
What is the benefit of using an enum rather than a #define constant?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Can we use any name in place of argv and argc as command line arguments?
Differentiate between #include<...> and #include '...'
Explain what is the benefit of using an enum rather than a #define constant?
What does nil mean in c?
Simplify the program segment if X = B then C ← true else C ← false
What is the purpose of void pointer?
Difference between macros and inline functions? Can a function be forced as inline?
How can I manipulate individual bits?
What are the different types of endless loops?
how to find anagram without using string functions using only loops in c programming