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
When a c file is executed there are many files that are automatically opened what are they files?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Why we use conio h in c?
How can I find the modification date and time of a file?
Is it possible to have a function as a parameter in another function?
What is a pointer variable in c language?
What is scope and lifetime of a variable in c?
What is the difference between far and near ?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is clrscr in c?
What is function definition in c?
Can you please compare array with pointer?
What is the size of structure pointer in c?