Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to multiply two number taking input as a string
(considering sum and carry )

Answers were Sorted based on User's Feedback



how to multiply two number taking input as a string (considering sum and carry )..

Answer / 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

how to multiply two number taking input as a string (considering sum and carry )..

Answer / 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

More C Interview Questions

Is it possible to initialize a variable at the time it was declared?

0 Answers  


What are the different file extensions involved when programming in C?

0 Answers  


Explain what is the benefit of using enum to declare a constant?

0 Answers  


what are the stages of compilation

1 Answers   Bosch,


Why do we use pointer to pointer in c?

0 Answers  


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 Answers  


int i=0,j; j=++i + ++i ++i; printf(" %d",j);

2 Answers   ME,


what is the difference between embedded c and turbo c ?

1 Answers  


What are linked lists in c?

0 Answers  


What is header file in c?

0 Answers  


What is multidimensional arrays

0 Answers  


Give the Output : * * * * * * * * * *

2 Answers  


Categories