write a Program to Store values of two variables through pointer .

4/21/2013 04:53:00 pm Unknown 0 Comments


#include<stdio.h>
#include<conio.h>
int main()
{
    int a,b;
    int *x,*y;
    a=12;
    b=2;
    x=&a;
    y=&b;
    printf("the value of a and b is:\n");
    printf("%d and %d",*x,*y);
    getch();
}