fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int x=47,*p;
  6. float y=2.69,*q;
  7. p=&x;
  8. q=&y;
  9. printf("x的值是%d,x的地址是%p\n",p,*p);
  10. printf("y的值是%f,y的地址是%q\n",y,&y);
  11. return 0;
  12. }
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
x的值是-884126960,x的地址是0x2f
y的值是2.690000,y的地址是%