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
find the sum of two matrices and WAP for it.
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What are types of structure?
What does typedef struct mean?
What are the advantages of the functions?
How can I find out the size of a file, prior to reading it in?
What are the advantages of external class?
Why is main function so important?
What are header files and what are its uses in C programming?
What does c in a circle mean?
How can I do serial ("comm") port I/O?
Explain the use of bit fieild.
What does %d do in c?
Hai what is the different types of versions and their differences
What is character set?