how to multiply two number taking input as a string
(considering sum and carry )
Answer Posted / vengat
int i, b;
char a[4] = "63";
for (i = 0;i < 1;i++)
{
b = (a[i] - 48)+(a[i+1]-48);
printf("%d\n", b);
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is the collection of communication lines and routers called?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Write a program to check whether a number is prime or not using c?
What is dynamic dispatch in c++?
What is the difference between formatted&unformatted i/o functions?
What are the types of pointers?
What is structure in c language?
What is define c?
How do I determine whether a character is numeric, alphabetic, and so on?
Can you please explain the difference between exit() and _exit() function?
What is c programing language?
What is scanf () in c?
Write a program to swap two numbers without using the third variable?
Is c easy to learn?