+ 2

Guess the error and tell me the correct answer

#include <stdio.h> int main() { float a[]={13.24,1.5,1.5,5.4,3.5}; float *j,*k; j=a; k=k+4; j=j*2; k=k/2; printf ("\n %f %f",*j,*k); return 0; }

16th Apr 2018, 12:00 PM
Nitesh Yadav
Nitesh Yadav - avatar
1 ответ
0
there are four arithmetic operators that can be used on pointers: ++, --, +, and -
16th Apr 2018, 12:38 PM
MO ELomari
MO ELomari - avatar