Computer Science, asked by krishnasangeeth07, 6 months ago

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 bhavyashree97
3

Ek ki Question ko kitna baar upload karoge

We don't know this...

Similar questions