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

How main method is called in c#?

0 Answers  


What are the commonly used i/o classes?

0 Answers  


Difference between type constructor and instance constructor? What is static constructor, when it will be fired? And what is its use?

0 Answers  


For methods inside the interface why can’t you specify the accessibility modifier?

0 Answers   Siebel,


When a new instance of a type is created, what is the type of method implicitly called?

2 Answers  






How you will create satellite assemblies?

0 Answers  


What is jit (just in time)?

0 Answers  


Explain namespaces in c#.

0 Answers  


if i used stored procedure for retrieving the data from sql server.in front end i had used data reader.when 100 records are there in table.when it has displayed ten records in frontend database has been collapsed.then where should our data available...

2 Answers   CybAge, Wipro,


Explain About delegates

0 Answers   TCS,


What does the parsefloat function do?

0 Answers  


How can we make a thread sleep for infinite period ?

0 Answers  


Categories