pointers - #include<stdio.h> int main cfw int a=12 char b int*p1 char*p2 p1=&a p2=&b*p1=10*p2='a printf\"0\\n*p1 printf\"0*p2#include<stdio.h> int main cfw

pointers - #include<stdio.h> int main cfw int a=12 char b...

This preview shows page 1 - 3 out of 3 pages.

#include<stdio.h> int main() { int a=12; char b; int *p1; char *p2; p1=&a; p2=&b; *p1=10; *p2='a'; printf("%d\n",*p1); printf("%d",*p2); } #include<stdio.h> int main() { int a=1,b=2,c=3; int *p1,*p2; p1=&a; p2=&c; printf("the old place%d\n",p1); printf("the old place%d\n",p2); *p1=++(*p2); printf("the new value for a %d\n",a); printf("the new value for a %d\n",b); printf("the new value for a %d\n",c); }
Image of page 1
#include<stdio.h> int main() { int a=1,b=2,c=3; int *p1,*p2; p1=&a; p2=&c; printf("the old place%d\n",p1); printf("the old place%d\n",p2); *p1=++(*p2); printf("the new value for a %d\n",a); printf("the new value for b %d\n",b);
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 pages?

  • Summer '14
  • Darwish
  • #include, printf, new value, char b, d\n

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes