//+,-,*,/ by using Pointor

void main()
{
    int a,b,p;
    int *p1;
    int *p2;
    clrscr();
    printf("\nEnter the The First No::");
    scanf("%d",&a);
    printf("\nEnter the Second No::");
    scanf("%d",&b);

    p1=&a;
    p2=&b;

    printf("\n\nAddress of the First Variable a  is  :: %u",p1);
    printf("\n\nAddress of the Second Variable a  is  :: %u",p2);

    printf("\n\n\nValue Stored of the First Address is  :: %d",*p1);
    printf("\n\n\nValue Stored of the Second Address is  :: %d",*p2);
    p=*p1+ *p2;

    printf("\n\n\nThe sume Variable is  :: %d",p);
    p=*p1-*p2;

    printf("\t\n\n\nThe subtract Variable is  :: %d",p);
    p=*p1* *p2;

    printf("\t\n\n\n\nThe Multiply Variable is  :: %d",p);
    p=*p1/ *p2;

    printf("\t\n\n\n\n\nThe Divide Variable is  :: %d",p);
    getch();
}

#vpsinghrajput

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment