Create a Code in C language For enter any two numbers and display total using of pointer

 
void main()
{
 int n1,n2,*no1,*no2,*t;
 clrscr();

 printf("enter 2 no:");
 scanf("%d%d",&n1,&n2);

 no1=&n1;
 no2=&n2;


 *t=*no1+*no2;
 printf("\ntot:%d",*t);
 getch();
}



Output:
Enter Two Number:10
20
Adddition is:30


Create a Code in C language For enter any two numbers and display total using of pointer Create a Code in C language For enter any two numbers and display total using of pointer Reviewed by Unknown on 7:42:00 PM Rating: 5

No comments:

Powered by Blogger.