Showing posts with label POINTER ARITHMETIC. Show all posts
Showing posts with label POINTER ARITHMETIC. Show all posts

Tuesday, 24 February 2015

Pointer Arithmetic Using C++

#include<iostream.h>
#include<conio.h>
main()
{
int a=100,*p;
clrscr();
p=&a;
cout<<"\n Pointer Arithmetic Result is :"<<(++*p);
getch();
}

Monday, 23 February 2015

Pointer Arithmetic in C


#include<stdio.h>
#include<conio.h>
main()
{
int a=100,*p;
clrscr();
p=&a;
printf("\n Pointer Arithmetic Result is :%d",(++*p));
getch();
}