What will be the output of the following program? void main() { int i; float a[5]; for (i=0; i<5; i++) a[i] = (printf, ("%d",i/10.0)); for (i=0; i<5; i++) printf("%.1f ",a[i]); }
Reveal answer
Fill a bubble to check yourself
What will be the output of the following program? void main() { int i; float a[5]; for (i=0; i<5; i++) a[i] = (printf, ("%d",i/10.0)); for (i=0; i<5; i++) printf("%.1f ",a[i]); }