V
vaysagekv
Hi,
I have written a program to add two big numbers.So i want to take
numbers as input from user.The number can be of any length (like 100
digit or 1000 digit).
What I am now doing is
char str[100] ;
scanf("%s",&str);// Or I can use fgets to check overflow.
But the maximum charecters is limited to 100(in above case).
Is it possible to take variable length input in C.
Thanks
vaysage.
I have written a program to add two big numbers.So i want to take
numbers as input from user.The number can be of any length (like 100
digit or 1000 digit).
What I am now doing is
char str[100] ;
scanf("%s",&str);// Or I can use fgets to check overflow.
But the maximum charecters is limited to 100(in above case).
Is it possible to take variable length input in C.
Thanks
vaysage.