-
-
Save anonymous/cb0bc4419f83d66ae890 to your computer and use it in GitHub Desktop.
How can I MACRO( T(N), ...) each (int) element in digits array in reverse order?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int config_n = 1024; | |
int n = config_n; int c = 0; while (n != 0) { n /= 10; c++; } int digits[c]; c = 0; n = config_n; while (n != 0) { digits[c] = n % 10; n /= 10; c++; } | |
// How can I MACRO( T(N), ...) each (int) element in digits array in reverse order? | |
// MACRO( I(0), T(digits[0]), T(digits[1]), T(digits[2]), T(digits[N]), ..., END) | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment