In C on numbers I would do it like this:
Depends on the number of letters. If there are, say, 5, then the first character is a variable divided by 1000. That's on numbers. And when it comes to the alphabet, it has 32 letters - you have to divide the number of digits by 32 and multiply by the letters it puts out. E.g. Matx, I want M then I make the variable digit=char/(32) and I have the first one and if I want the last one I guess digit=char/(32*4) because x is the fourth character,because there are four letters. And this is how I would solve it. Greetings. I think I am thinking correctly?
Added after 5 [hours] 31 [minutes]: .
In the C language, char is a basic data type used to store a single character that is represented by its numeric value, usually an ASCII code. Although char is single-byte, its default state can be signed (from -128 to 127) or unsigned (from 0 to 255), depending on compiler options or the char type. In the C language, char is also keyed to create strings, which are actually arrays terminated by a special NULL character (¯0), rather than string objects. So you divide by the maximum you can use in an ANCI character
Added after 3 [minutes]:
Divide by the maximum number that fits in one character and it should work
Moderated By gulson: The advice is wrong. 3.1.11. Publish posts that do not contain substantive content, contain harmful advice, advice that does not attempt to solve a problem, and publish identical posts that follow or repeat information included in the course of the discussion.
.