I use fgets to grab a line to a string, and I checked the pointer before and after I use fgets. I want to know why the pointer remained the same, instead of add 200?
Code:#include <stdio.h> int main (){ FILE *new; char string[100]; new = fopen ("jt.rules", "r"); printf ("start address: %d\n", new); fgets (string, 100, new); printf ("end address: %d\n", new); fclose (new); return 0; }
output:
start address: 1024748
end address: 1024748




