not able to use printf statement in keil uvision 4
And what did you do then?
Did you read any documentation, trying to figure out exactly where printf() should send the output, given that embedded products don't have a default "text console"?
What conclusions did you make, after having realized that printf() needs some support code for actual output of the formatted text?