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


Please Help Members By Posting Answers For Below Questions

GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA

1422


What is an lvalue?

627


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1733


what is the diffrenet bettwen HTTP and internet protocol

1383


What is the explanation for cyclic nature of data types in c?

640






What do you understand by normalization of pointers?

617


What is local and global variable in c?

610


What is an auto variable in c?

744


What is the hardest programming language?

660


Explain heap and queue.

575


What is the purpose of realloc()?

661


What is printf () in c?

574


Explain how do you sort filenames in a directory?

595


What is the difference between text and binary i/o?

586


What are the different types of control structures in programming?

651