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?

Answers were Sorted based on User's Feedback



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

Answer / *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

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

Answer / danush

int a[10],int b[10];
int i,n;
scanf("%d";n);
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}similarly for b
for(i=0;i<n;i++)
{int result[i];
resul[i]=a[i]+b[i];
/*for addition of singe row or column matrix

Is This Answer Correct ?    2 Yes 0 No

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

Answer / shubhankar

can anybody tell me how the 1st will get executed???????????

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

0 Answers  


How can I write a function analogous to scanf?

0 Answers  


what is the hexidecimal number of 4100?

16 Answers   Google,


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

0 Answers  


Why enum is used in c?

0 Answers  


What is s in c?

0 Answers  


Can i use Two or More Main Funtion in any C program.?

4 Answers  


Why doesnt that code work?

0 Answers  


sir, i cannot find the way how to write aprogram by using array on queue

1 Answers   IISIT,


Describe static function with its usage?

0 Answers  


cavium networks written test pattern ..

0 Answers   Cavium Networks,


Eight queens puzzle

0 Answers  


Categories