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 wrong with this code?
What is the purpose of clrscr () printf () and getch ()?
What is the use of in c?
What is the ANSI C Standard?
What is string constants?
What is the difference between new and malloc functions?
What is || operator and how does it function in a program?
Tell me can the size of an array be declared at runtime?
Explain how can a program be made to print the name of a source file where an error occurs?
What are the differences between new and malloc in C?
Is this program statement valid? INT = 10.50;
Write a program that accept anumber in words
What is a pointer on a pointer in c programming language?
can we change the default calling convention in c if yes than how.........?
write a c program in such a way that if we enter the today date the output should be next day's date.