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 )

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

What is a file descriptor in c?

1053


What is calloc() function?

1047


Explain how do you list a file’s date and time?

987


What are unions in c?

979


Tell me with an example the self-referential structure?

940


What is dynamic memory allocation?

1282


Ow can I insert or delete a line (or record) in the middle of a file?

951


while initialization of array why we use a[][2] why not a[2][]...?

2302


How old is c programming language?

960


What is structure padding in c?

1053


Why array is used in c?

969


Explain how can I manipulate strings of multibyte characters?

1156


What is the size of array float a(10)?

1090


What is wrong with this initialization?

954


What is const and volatile in c?

988