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 to add a string of characters based on a scanf code in keil for 89c51 microcontroller? I have read that i can do it using serial input but i am not aware from where can i open a serial input in keil
Follow this instructions: http://www.keil.com/support/man/docs/c51/c51_scanf.htm using the code presented there.
int i; float x; char name[50]; scanf ("%d%f%s", &i, &x, name);
25 54.32E-1 thompson
int i; float x; char [50]; scanf (%2d%f%*d%[1234567890[", &i, &x, name);