DATA STRUCTURES, C, C++, VC ++ – what will be the o/p of the following program?

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 …

Share

One Comment

  1. venkat says:

    error will come, because we cant do mulipication and division with pointer variables……
    we can do only addition and substration

Leave a Reply

Enter your email address to get Fresher Jobs: