This is probably a very elementary problem, but I cannot find the answer anywhere, and this is the first time I\'ve had the problem after several weeks of programming in C. In e
You have to do:
printf("size is %d", size);
instead. This prints the value of the int object size.
int
size
But
printf("size is %d", &size);
is undefined behavior.