Pointer_1.4

#include <stdio.h>
int main(void)
{
    int *i,*j;
    int a,b;
    printf("Enter the first number:\n");
    scanf("%d",&a);
    i=&a;
    printf("%d\n",*i);
    printf("Enter the Second number:\n");
    scanf("%d",&b);
    j=&b;
    printf("%d\n",*j);
    printf("Enter the third number:\n");
    scanf("%d",&*i);
    printf("%d\n",*i);
    printf("Enter the fourth number:\n");
    scanf("%d",&*j);
    printf("%d\n",*j);
    
    system("pause");
    return 0;
}

0 comments:

Post a Comment