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 is the purpose of void pointer?
is it possible to create your own header files?
What is the use of function in c?
Are the outer parentheses in return statements really optional?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
What is the use of ?: Operator?
How can a number be converted to a string?
Is c high or low level?
Write a function that will take in a phone number and output all possible alphabetical combinations
Explain how do I determine whether a character is numeric, alphabetic, and so on?
Difference between linking and loading?
what is bit rate & baud rate? plz give wave forms
Is a house a mass structure?
Explain 'bit masking'?
What is strcmp in c?