Just a quick question: What are people's practices when you have to define the (arbitrary) maximum that some array can take in C. So, some people just choose a round number ...
BUFSIZ would be my suggestion. But then again, I would probably use BUFSIZ for reading ALL input, then validate whatever was typed in, just to minimise the problems of the user being a moron and typing excessively long lines of rubbish just to see if they can break your code. For a double, you need about 15 decimal digits to fill ...
so what if it is 16 years old we are discussing logic behind programs dear.it dosent matter if it is 16 years old or 1 day old. c programming needs C that's it. but i do agree that there will be portability problem. ive started using VC++. but still TC is much better
Thanks for all applicable responses and I'm sorry if my question wasn't smart enough. By the way ,according to your advices I have searched on Internet for gcc compiler for hours and houres but I have encountered a lot of information that made me really mixed up. According to some sites it seems I should first install some other requirements to ...
There appears to be a hard limit to the maximum array size allowed by c compilers of 2 to the 29th. Can anyone confirm that this is a hard limit (no way to adjust it that is)? Has anyone ever ran into it before, and if so what did you do? Note that it isn't a simple case of an array ...