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

Array is an lvalue or not?

1140


What is the ANSI C Standard?

1292


Is main a keyword in c?

1145


Sir i need notes for structure,functions,pointers in c language can you help me please

2429


Why is %d used in c?

1016


What is a dynamic array in c?

1168


What is the purpose of void in c?

1072


int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;

1841


What is a function in c?

1595


write a program to create a sparse matrix using dynamic memory allocation.

4908


Explain how can I open a file so that other programs can update it at the same time?

1128


State the difference between x3 and x[3].

1122


How can I remove the trailing spaces from a string?

1087


How do you declare a variable that will hold string values?

1187


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2789