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
how to print the character with maximum occurence and print that number of occurence too in a string given ?
How do you write a program which produces its own source code as output?
What are the different types of constants?
What is wrong with this declaration?
How can I read data from data files with particular formats?
Where static variables are stored in memory in c?
#include
How can I recover the file name given an open stream or file descriptor?
What's the total generic pointer type?
What are the c keywords?
What is the need of structure in c?
how is the examination pattern?
Why c language?
Explain enumerated types in c language?
How is a macro different from a function?