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

Can we initialize extern variable in c?

1151


What do you mean by scope of a variable in c?

1025


Does c have circular shift operators?

1267


Where are local variables stored in c?

1052


write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.

2112


Why is it that not all header files are declared in every C program?

1237


What is a stream water?

1237


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1010


How can you avoid including a header more than once?

998


Define circular linked list.

1045


What is a null string in c?

1059


How do we open a binary file in Read/Write mode in C?

1249


I have a varargs function which accepts a float parameter?

1062


What are 'near' and 'far' pointers?

1056


What do you mean by dynamic memory allocation in c?

1112