Logo 
Search:

C++ Programming Answers

Ask Question   UnAnswered
Home » Forum » C++ Programming       RSS Feeds
  Question Asked By: Harshal Hatz   on May 23 In C++ Programming Category.

  
Question Answered By: Abhishek Singh   on May 23

#include<stdio.h>
#include<conio.h>
void main()
{
int a[12],b[12],c[12];
int *p,*q,*r;
for(i=0;i<5;i++)
{
scanf("%d",&a[i]);
}
//copy
p=&a;
q=&b;
for(i=0;i<5;i++)
{
*(p+i)=*(q+i);
p++;
q++
}
//after copy
for(i=0;i<5;i++)
{
printf("%d",*(b+i));
}

Share: 

 
 
Didn't find what you were looking for? Find more on I WANT THE CODING OF THESE PROBLEMS PLZ HELP: Or get search suggestion and latest updates.


Tagged: