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 a file descriptor in c?
What is calloc() function?
Explain how do you list a file’s date and time?
What are unions in c?
Tell me with an example the self-referential structure?
What is dynamic memory allocation?
Ow can I insert or delete a line (or record) in the middle of a file?
while initialization of array why we use a[][2] why not a[2][]...?
How old is c programming language?
What is structure padding in c?
Why array is used in c?
Explain how can I manipulate strings of multibyte characters?
What is the size of array float a(10)?
What is wrong with this initialization?
What is const and volatile in c?