When i run this programme i get the following output:
0.6667
0.666667
How come the second printf statement does not use the "val" value?
insertthanxCode:main(){ int val; val = 20; float num = 2.0/3.0; printf("%5.4f \n",num); printf("%-5f \n",val); getchar(); return 0; }