how to take a number having 1000000 digit as input in C
#include<stdio.h>
void main()
{
long n;
printf(“enter the number”);
scanf("%d",&n);
getch();
}
you have to take it as an array. you can’t store such large numbers in any int or long type number.
@simran1467, don’t answer if you don’t know it. You may lead the person in a wrong way.
long long int
it can fit i gues 10^19 digits
Long long int fitting {10}^{19} DIGITS ? Are you sure ??
1 Like
I believe it’s 10^18 not sure though
XD . Even python cant store a number that large. Leave python, even arrays cant store those many digits XD
1 Like
it can be store in string