Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <stdio.

h>

int main()
{
int arr[10]={2,3,4,5};
int* ptr;
ptr=arr;
printf("%d \n",ptr[0]);
ptr++;
printf("%d \n",ptr[1]);
printf("%d \n",ptr[2]);

return 0;
}

output
2
4
5

You might also like