answersLogoWhite

0

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

int i;

int a[4]={1,2,3,4};

int *p1,*p2,*p3;

for(i=0;i<4;i++)

{

p1=&a[0];

p2=&a[2];

p3=*p2-*p1;

printf("\n value of p3%d",p3);

}

getch();

}

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor

Add your answer:

Earn +20 pts
Q: How do you Add 2 numbers using pointer and array in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp