1. Why do lots of programmers use BUFSIZ as a size for their large arrays?? how big is it anyway??
2. Check this FAQ entry Option 3 , the example where the author uses a char array BUFSIZ big and a strtol() function.
when the user inputs a number in that char array , how will numbers fit in it??? like if he enters the number '42' , how will it be stored in that CHAR array???
3. i've saw someone doing this before :
im not used to point to a string without allocating space for it first and pointing to that space , how does the previous example work???Code:#include<stdio.h> int main() { char *p; p = "hello world"; puts(p); return 0; }
appreciate your help..