Possible Duplicate:
C++: What is the printf() format spec for “float”?
I am new to C++ , and Use the classic Borland Turbo C++
with the graphics initialized , when i use printf the following way, it shows value 0. but when i use cout the correct value is displayed
float x=10;
printf("%d",x); // displays 0
cout<<x; // displays 10