I just started programming in c and i know some basics of python so when i set a very big int value to a variable in python say '58944651132156484651' and print the variable everything will be fine but when i do the same with c the answer will be 247..... after searching this I found that this is the max possible value in c and i understood everything but can anyone tell me that what was the need of this thing everything was working fine without this max value and this maximum value will arise so many problems like I can't set my phone number as variable and a lot of things like that so please help me to figure this out. Remember i was a python user and now I am learning c.
/*code in c*/
#include <stdio.h>
#include <stdlib.h>
int main()
{
int num = 456465465456456465465456;
printf("%d \n", num);
return 0;
}
#code in python
num = 54454564564848431284132116483211
print(num)
#that's better than the c's big print :(