Z
Z
Zorgios2021-07-01 11:01:30
C++ / C#
Zorgios, 2021-07-01 11:01:30

How to convert hexadecimal number to hex form?

In pure C.
There is a function that eats u32 variables of the form 0x ... For example
, if it needs to feed f, then it must be passed 0xf

u32 resultItem = 0xf;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2021-07-01
@SaNNy32

In programming languages, any number is an invariant, and hex, decimal, octal are just a form of representation (display) of a number. Therefore, a number is passed to the function, not its representation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question