We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
how can we make display the value of a variable here? can we use ansi c command "%d"?????
"%d" isn't any ANSI C command. But if you are talking about printf(), sprintf(), ... then they can normally be used - but remember that your program doesn't have any stdin and stdout, so you need to adapt the code to send any text output to a suitable device. All controlled using putchar().
Just a question: Was there any part of the Keil manuals that you found hard to understand? Or did you jump directly to this forum without even looking at the manual information? Not even a quick use of google for "c51 printf"? You felt you saved time by ignoring Google?
thank you for your valuable information, i haven't gone through keil manual .. if you found this as a silly question sorry, please ignore it,as I'm a beginner and you being the master I have many limitations.
Mastery of a topic comes from study and analysis, not playing 20-questions with someone who's taken the time to read the stuff. Take some time to at least skim through the available materials so you know the lay of the land, and know where to look when you need specifics.
The quality of the answers here will depend greatly on how considered the question is.