Multi-Dimensional Arrays

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.

Be sure to turn on your compilers warnings. Few compilers will ignore a mismatch like this.

if (argv[1][0] == blah[0])

I understodd my mistake, which was comparing an entire pointer. Thanks.

the style of

main()
{
}

is very old

and explicitly make main to return a value

int main(..)
{
  return 0;
}