Stack Overflow has this question answered in many other languages, but not C. So I thought I'd ask, since I have the same issue.
How does one concatenate two integers in C?
Example:
x = 11;
y = 11;
I would like z as follows:
z = 1111;
Other examples attempt to do this with strings. What is a way to do this without strings?
I'm looking for an efficient way to do this in C because in my particular usage, this is going into a time critical part of code.
Thanks in Advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…