Home » C Programming » Pointers

What will be the output of the program? #include int main() { int i, a[] = {2, 4, 6, 8, 10}; change(a, 5); for(i=0; i<=4; i++) printf("%d, ", a[i]); return 0; } void change(int *b, int n) { int i; for(i=0; i

Correct Answer: 2, 15, 6, 8, 10

← Previous Question Next Question→

More Questions from Pointers

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion