MULTIPLICATION USING POINTER VARIABLE

#include<stdio.h>
#include<conio.h>
void main()
{
int r,x,y,*p1,*p2;
clrscr();
printf("\n\tEnter first number:");
scanf("%d",&x);
printf("\n\tEnter second number:");
scanf("%d",&y);

p1=&x;
printf("\n\tMemory address=%u",p1);
printf("\n\tValue at 
memory address=%u",*p1);

p2=&y;

printf("\n\tMemory address=%u",p2);
printf("\n\tValue at 
memory address=%u",*p2);
r= *p1 * *p2;
printf("\n\t<Multiplication=%d",r);
getch()
}
Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II

Programmingway@Eklavya Technosys!: JTET 2026 | Computer Sections Solutions | Paper -II :   1) Which of the following is the extension of Not...