Is it possible to add two 50 digit numbers in .net? If yes
what is the code snippet?

Answers were Sorted based on User's Feedback



Is it possible to add two 50 digit numbers in .net? If yes what is the code snippet?..

Answer / parham

Yes BigInteger: Represents an arbitrarily large signed integer.
https://msdn.microsoft.com/en-us/library/system.numerics.biginteger(v=vs.110).aspx

Is This Answer Correct ?    1 Yes 0 No

Is it possible to add two 50 digit numbers in .net? If yes what is the code snippet?..

Answer / rahul s

No.. It gives compile time error saying integral constant is too large.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is enumerable in c#?

0 Answers  


What is difference between const and static in c#?

0 Answers  


f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.

7 Answers  


Why use a singleton instead of static methods?

0 Answers  


Distinguish between continue and break statement?

0 Answers  


Difference between call by value and call by reference in C#?

0 Answers   Hexaware,


Is there any sample c# code for simple threading?

0 Answers  


How do you sort a list in c#?

0 Answers  


What is difference between arraylist and list in c#?

0 Answers  


Define satellite Assembly?

0 Answers   Siebel,


What is assembly manifest?

0 Answers  


In which situation(s), the use of "Delegate" is a good idea?

0 Answers   MCN Solutions,


Categories