So, I'm fooling around with multi demtional arrays, and I made this in a short amount of time:
#include <stdio.h>
main(int argc, char *argv[]) {
char blah[2][2] = {
{'a', 'b'},
{'b', 'a'}
};
int i = 0;
while (i < 2) {
if (argv[1] == blah[0])
printf("%c\n", blah[1]);
i++;
}
}
The goal is to take in input(a or b) and then print out a diffrent letter(b or a). I know it isn't too challenging, but it was for practice.
Thanks for reading.