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
Array is an lvalue or not?
What is the ANSI C Standard?
Is main a keyword in c?
Sir i need notes for structure,functions,pointers in c language can you help me please
Why is %d used in c?
What is a dynamic array in c?
What is the purpose of void in c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is a function in c?
write a program to create a sparse matrix using dynamic memory allocation.
Explain how can I open a file so that other programs can update it at the same time?
State the difference between x3 and x[3].
How can I remove the trailing spaces from a string?
How do you declare a variable that will hold string values?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion