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 are the primitive data types in c?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Why main is not a keyword in c?
Define circular linked list.
Why & is used in scanf in c?
Why static variable is used in c?
What is structure in c language?
Can include files be nested? How many levels deep can include files be nested?
What is the difference between procedural and functional programming?
What is the difference between far and near ?
Describe the steps to insert data into a singly linked list.
What does s c mean in text?
Is it possible to have a function as a parameter in another function?
If fflush wont work, what can I use to flush input?
How does placing some code lines between the comment symbol help in debugging the code?