Okay, I had this tid-bit of code and this output:
When I entered the string, "Garfield", the output was:Code:char *name; fgets(name, sizeof(name), stdin); printf("name = %s\n", name);
"Gar" (and this is NOT including the \n char). Why is this? Why not the whole string? What is the size of this pointer anyway and what is the problem with this code? Thanks...