Answer the question
In order to leave comments, you need to log in
How to combine two different variables into one?
for example if int x = 5 ; char y = 'A' ;
and the result was currents
return 5A;
Answer the question
In order to leave comments, you need to log in
int x = 5 ;
char y = 'A' ;
char ret[] = { '0'+x, y, '\0' };
return string( ret );
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question