how write a addtion of two single dimensional array using
of pointer in c language?
Answer Posted / *c
int a[10];
int b [10];
int c [10];
int i;
for (i=0;i<foo;i++) {
*(c+i) = *(a+i) + *(b+i);
}
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is the total generic pointer type?
What is the main difference between calloc () and malloc ()?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is typedf?
The difference between printf and fprintf is ?
What is the explanation for cyclic nature of data types in c?
Explain enumerated types.
What happens if a header file is included twice?
What is substring in c?
Is javascript written in c?
What is a #include preprocessor?
Why does everyone say not to use gets?
How do you declare a variable that will hold string values?
What are the different types of endless loops?
What is the c language function prototype?