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 is 'bus error'?

1091


Why dont c comments nest?

1000


What is console in c language?

1046


Differentiate between Macro and ordinary definition.

1273


Explain union. What are its advantages?

1008


Do pointers store the address of value or the actual value of a variable?

1020


In which layer of the network datastructure format change is done

1837


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1051


What is a null pointer in c?

1124


What do you mean by a local block?

1027


Why is it important to memset a variable, immediately after allocating memory to it ?

2000


Which header file is essential for using strcmp function?

1423


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

1241


What is a pointer and how it is initialized?

1082


how logic is used

1917