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 are called c variables?

1055


Where static variables are stored in memory in c?

1000


What is structure data type in c?

1014


What is unary operator?

1098


How pointers are declared?

951


I heard that you have to include stdio.h before calling printf. Why?

1063


how can f be used for both float and double arguments in printf? Are not they different types?

1064


What is the difference between fread buffer() and fwrite buffer()?

1171


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1095


What are local static variables? How can you use them?

1146


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1362


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1152


How can I manipulate strings of multibyte characters?

1111


Write a program to print factorial of given number using recursion?

1007


Explain what is the most efficient way to store flag values?

1227