SyntaxFix
Write A Post
Hire A Developer
Questions
To print the address of a variable, you need to use the %p format. %d is for signed integers. For example:
%p
%d
#include<stdio.h> void main(void) { int a; printf("Address is %p:",&a); }