What is wrong with following code and also give the reason of-00759

Online Quiz This subjective question is related to the book/course vu cs504 Software Engineering - I. It can also be found in vu cs504 Mid Term Solved Past Paper No. 1.

Question 1: What is wrong with following code and also give the reason of error?
int x , y ;
int *ptr1 = &x ;
int *ptr2 =&y ;
ptr1+ptr2;
Answer:
We need one more variable in which we put sum of ptr1 and ptr2 like int z; z=ptr1+ptr2;

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background