Reading long int using scanf
For gods sake:
long n;
scanf( "%ld", & n );
Just use
long l;
scanf("%ld", &l);
it gives me an irritating warning..
That warning is quite right. This is begging for stack corruption.
For gods sake:
long n;
scanf( "%ld", & n );
Just use
long l;
scanf("%ld", &l);
it gives me an irritating warning..
That warning is quite right. This is begging for stack corruption.