How to print the concatenation of two numbers in C

1 Answer

0 votes
#include <stdio.h>

#define S_CONCAT(x, y) x##y

int main() {
   printf("%d", S_CONCAT(50, 99));
   
   return 0;
}


/*
run:

5099

*/

 



answered Aug 2, 2020 by avibootz
...