Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Pointer Arithmetic
We can manipulate the pointers too. We can perform operations such as addition, subtraction, increment and decrement etc.,. As the pointer variables have address, adding or subtracting a number results in another address, which is at an offset from the original address. This may be memory address occupied by another variable.
e.g.
int i, j, k ;
int *iptr = &i;
*iptr = *iptr + 2; // I = I + 2;
iptr = iptr + 2 // adds 2 to address.
These are useful when using arrays.
arr[10];
int *iptrb = &arr[0];
int *iptre = &arr[10];
While ( iptrb != iptre)
{
Do something with the value if (*iptrb);
++iptrb;
}
give a program to accept and print 2_D Array
limitation of function
algorithm to prepare mark sheet of a student by inputing name,branchcode,semester,register no,5 marks of students and total mark of student
What if one can''t wrap the local in an artificial block?
Step 1 Define the program headers and the variables #include #include #include #include void main() { char prompt; float a,b,c,d,e; floa
Explain protected, public, private in C++? These are three access spaecifiers in C++. - Public - Here data members and functions are accessible outside the class. - Pr
wap to cheak if a number is palindrom
write a program to find area of curve y=f(x) between x and x=b,integrate between the limits a and b using c #include float start_point, /* GL
C Program for SORTING # include stdio.h> void main() { char a; int *p; int i,j,temp; clrscr(); p=&i;
Observe that our model of evaluation allows for combinations whose operators are compound expressions. (a) Use this observation to describe the behavior of the following procedu
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd