Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how write a addtion of two single dimensional array using
of pointer in c language?

Answer Posted / *c

int a[10];
int b [10];
int c [10];
int i;

for (i=0;i<foo;i++) {
*(c+i) = *(a+i) + *(b+i);

}

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %c mean in c?

1103


What is an endless loop?

1284


Why main function is special give two reasons?

1551


Explain what is the benefit of using enum to declare a constant?

1097


Explain the binary height balanced tree?

1195


Why c is known as a mother language?

1089


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

2300


#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }

1060


What is the easiest sorting method to use?

1178


What will be your course of action for a push operation?

1113


Are there any problems with performing mathematical operations on different variable types?

1045


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5961


what is the significance of static storage class specifier?

2265


What is formal argument?

1141


What is the difference between abs() and fabs() functions?

1135