|
Home » C++ Home » Beginners / Lab Assignments Home » Addition of two very long positive integers(without using linked list -saving memory which is consumed in case of linked list to store address of next node)
A D V E R T I S E M E N T
Title |
Addition of two very long positive integers(without using linked list -saving memory which is consumed in case of linked list to store address of next node) |
Author |
Sandeep Sindhwani |
Author Email |
sandeepsindhwani17 [at] rediffmail.com |
Description |
This code adds two very long integers. Here making this the linked list has been avoided because linked list takes extra memory in storing the address of next node. This code has been implemented using a pointer to a character. The pointer to a character is allocated memory using malloc() function here. But as the length of number is increased then the number is allocated more memory using realloc() function. |
Category |
C++ » Beginners / Lab Assignments |
Hits |
382092 |
Code |
Select and Copy the Code
|
|
|
Related Source Codes
A D V E R T I S E M E N T
|
Subscribe to SourceCodesWorld - Techies Talk |
New! Click here to Add your Code!
ASP Home | C Home | C++ Home | COBOL Home | Java Home | Pascal Home
Source Codes Home Page | |
|