AD1

Saturday, 14 January 2017

Pointer Arithmetic

What will be the output of the following program 


#include "stdio.h"
int main()
{
//Pointer Arithmetic
int i=4,*j;
j=&i ;printf("%d\n",j);
j=j+1 ;printf("%d\n",j);
j=j+9 ;printf("%d\n",j);
j=j-3 ;printf("%d\n",j);
return 0;
}

2424388
2424392
2424428
2424416

No comments:

Post a Comment