The address which you are passing is not overwritten. Try giving a printf() or call some other function before printing the output and share your output.