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;
}
Reverse a string - C ++ program: Write a program in c to reverse a string. int main() { Stack theStack; String reverse("reverse"); cout
overloadstream insertion opertator to display the data of object on the console
Implementing files in c++
Define a structure of student class: Write a program to define a structure of student record in C. class student { char name[20]; int roll_no; int marks[2];
sir,why we use virtual function
This task involves char arrays and pointer based string handling. Which we use to make a simple encryption program, using a Caesar Cipher, Write a program that: a. Asks
Project Description: I have software written with VB that i helped design, but now the original author died,(Neil Tromp), and the software ended up in the hands of someone else!
write a program that adds all numbers from 1 to 200
Create a C language code, only one program, to implement the following task. Task: Write C code for a program that implements a digital clock (HH:MM:SS). The clock inclu
This is what I need help with. "Create a program creates an interface allowing the user to select from some other programs I have made one being a money converter and the other ca
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