This is my 4 digit number(0000 to 9999) increment c program in keil using 89s52 microcontroller .
But lcd only count 0000 to 0250 digit.
I want lcd conut 0000 to 9999 digit number.
Please help me sir/madam.
Instead of starting a new thread you should try to give the requested informations.
Don´t expect that others do your job and write code for you. But you will find a lot of people here helping you to correct your code.
Sir I used sprint(ch,"%u",val)
But program can not run and
display error c267: requires ANSI -style prototype.
Please sir help me .,
Now what is this solution ????
We can see what you wrote but it doesn't help with a diagnosis.
A missing ANSI prototype generally means you have written a function but not previously defined a prototype for it. The missing prototype is probably for the routine called 'counter()' but so much of your code is not shown that it could easily be something else. We need to see which '.h' files you have included and how the variables you are using have been declared.
Try attaching the code to your message so we can see it in full.