#include #include void vaibhav() { int a; printf(\"%u\\n\",&a); } int main() { vaibhav(); vaibhav(); vaibhav(
You should use %p format specifier to print address of a variable. %u & %d are used to display integer values. And the address on stack can be same or not every time you call function vaibhav().
%p
%u
%d
vaibhav()