, - , " ". (google, :-)
, undefined:
- printf stdio.h
- void main
- % d
- % p - ptr-to-void
Correctly written is as follows:
#include <stdio.h>
int main (void)
{
int i, k;
char *p;
int j;
printf ("address of i is %p\n", (void *)&i);
printf ("address of k is %p\n", (void *)&k);
printf ("address of p is %p\n", (void *)&p);
printf ("address of j is %p\n", (void *)&j);
return 0;
}
source
share