v) Have a look at the following piece of code, state and explain the output.
#include <stdio.h>
void fun(int a[]){
int i;
for(i = 1; i <= 5; i++)
a[i - 1] += i;
}
int main(void) {
// your code goes here
int a[5] = {1, 2, 3, 4, 5}, i;
fun(a);
for(i = 0; i < 5; i++)
printf("%d ", a[i]);
return 0;
}
Attachments:
Answers
Answered by
3
Ek ki Question ko kitna baar upload karoge
We don't know this...
Similar questions
Social Sciences,
3 months ago
English,
6 months ago
Math,
6 months ago
English,
11 months ago
Computer Science,
11 months ago