We can print the address of a variable or a function using the following specifiers %u,%p here %u prints address in decimal form and %p prints in hexa decimal form,but remember these two format specifiers print only offset address but they doesn't print code segment address
there is a another specifier %Fp which prints both the code segment and offset address
The address of variable is printed in 'c' by using the formated string "%u" and the variable is '&variable name'.