Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Programming and Data Structure Programming in C Array
What is the output of following code?
main ( )
{static float a [ ] = {13.24, 1.5, 4.5, 5.4, 3.5}
float *j, *k;
j = a;
k = a + 4
j = j * 2;
k = k/2;
printf("% f% f', *j, *k):
}
1
13.25, 4.5
2
1.5, 3.5
3
13.24, 1.5, 4.5, 5.4, 3.5
4
Illegal use of pointer in main function