What is the output of following code?

#include

int 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);

    return 0;
}

1
26.480000, 1.750000
2
1.5, 3.5
3
13.24, 1.5, 4.5, 5.4, 3.5
4
Illegal use of pointer in main function
5
Question Not Attempted

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation