Advertisement
Md_hosen_zisad

POINTER TYPE

Oct 31st, 2017
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.    int x[10];
  5.    int *p;
  6.    p=x;
  7.    int i;
  8.    for(i=0;i<5;i++)
  9.    {
  10.        scanf("%d",x+i);
  11.  
  12.    }
  13. for(i=0;i<5;i++)
  14.    {
  15.        printf("%d %d\n",(x+i),*(x+i));}
  16.        return 0;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement