Pointer_1.1

#include <stdio.h>
int main (void)
{
    int *i,j,k;
    i=&j;
    *i=7;
    i=&k;
    *i=10;
    printf("%d",j);
    printf("\n");
        printf("%d",k);
    printf("\n");
    system("pause");
    return 0;
}

This is the output:
7
10

0 comments:

Post a Comment