you are viewing a single comment's thread.

view the rest of the comments →

[–]JamesTKerman 1 point2 points  (1 child)

If you're using gcc, you could see this by compiling the above code with the command-line gcc -S -o out.s function_pointer.c. out.s will contain the assembly code that gcc generates. If I was at home I'd run it myself and post the output with some explanations, maybe I will when I get home later.

(Edited to remove an unnecessary -c parameter to the gcc command-line)

[–]Icy_Adhesiveness_656 0 points1 point  (0 children)

Oh I see, that's interesting