Splitting Variable of integer into 2 Set
1) variable declaration. I have declare variable unsigned int Top_Display=0; if assign Top_Display=0123 display shows 0083 if assign Top_Display=123 display shows 0123 Some of the variable it take properly and some are not. if i assign value Top_Display=0129 it gives error digit is out of range.


In C and many other programming languages, leading zero indicates an octal number.

printf("%d\n", 010);

8


As there is no '8' or '9' in a well-formed octal number, you get an error at compile time.  Your constant 0123 is decimal 83, and that's probably not what you wanted.