What will be the output of the following function?
include<stdio.h>
void fun(int *f) { *f = 10; } void main() { const int arr[5] = {1,2,3,4,5}; fun(&arr[3]); printf(“%d”,arr[3]); }
Reveal answer
Fill a bubble to check yourself
What will be the output of the following function?
void fun(int *f) { *f = 10; } void main() { const int arr[5] = {1,2,3,4,5}; fun(&arr[3]); printf(“%d”,arr[3]); }