What will be the o/p of the following program?
nt main()
{int a=10, b=2;
int *p,*q;p = &a;
q= &b;res = *p/*q;
printf(“%d”,res);return 0;
}
Write in the comments below …
What will be the o/p of the following program?
nt main()
{int a=10, b=2;
int *p,*q;p = &a;
q= &b;res = *p/*q;
printf(“%d”,res);return 0;
}
Write in the comments below …
Posted in: C, C++, VC ++.
Tagged: Programming
© 2012 Placement Papers | Fresher Jobs 4 U | Education India World
error will come, because we cant do mulipication and division with pointer variables……
we can do only addition and substration