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
What kind of structure is a house?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Write a program to print "hello world" without using a semicolon?
Can a void pointer point to a function?
What is multidimensional arrays
What is structure in c language?
write a program to print largest number of each row of a 2D array
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
How will you write a code for accessing the length of an array without assigning it to another variable?
What are 3 types of structures?
What is hash table in c?
What is the purpose of 'register' keyword?
What are register variables in c?
What is the need of structure in c?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.