No, because not every value is equally likely. By far the most likely value in any given memory location is zero, probably somewhere on the order of 30%. Go on, pause a running program and look...
Type: Posts; User: iMalc
No, because not every value is equally likely. By far the most likely value in any given memory location is zero, probably somewhere on the order of 30%. Go on, pause a running program and look...
*sigh* another poor code example...
1) You don't need two separate counter variables there. You could just do:
for(length=0; my_array[length]!='\0'; length++) {}
2) Stop reinventing the wheel,...
black_stallion and rac1: Read the documentation on scanf: