how write a addtion of two single dimensional array using
of pointer in c language?
Answers were Sorted based on User's Feedback
Answer / *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 |
Answer / 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 |
Answer / shubhankar
can anybody tell me how the 1st will get executed???????????
| Is This Answer Correct ? | 0 Yes | 0 No |
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How can I write a function analogous to scanf?
what is the hexidecimal number of 4100?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
Why enum is used in c?
What is s in c?
Can i use Two or More Main Funtion in any C program.?
Why doesnt that code work?
sir, i cannot find the way how to write aprogram by using array on queue
Describe static function with its usage?
cavium networks written test pattern ..
Eight queens puzzle