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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of structure is a house?

1036


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1133


Write a program to print "hello world" without using a semicolon?

1052


Can a void pointer point to a function?

1011


What is multidimensional arrays

1117


What is structure in c language?

1156


write a program to print largest number of each row of a 2D array

2319


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

2145


How will you write a code for accessing the length of an array without assigning it to another variable?

1037


What are 3 types of structures?

1058


What is hash table in c?

1016


What is the purpose of 'register' keyword?

1094


What are register variables in c?

1006


What is the need of structure in c?

1106


Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.

1223