I was given the following program and asked to debug it but I am having an issue understanding some of the code in it. First of all I can't seem to find out what the const char ** means. Secondly, in the final printf statement it appears that the %s string is not printing when the program is runned. Can anyone point in the right direction with this one?
Code:
#include <stdio.h>
#define DOCTORATE 1
#define CHOICE 2
const char *a[2][3] =
{
{"Hitler", "Stalin", "Bin Laden"},
{"Clinton", "Bush", "Powell" }
};
int main()
{
const char **array;
#if D0CT0RATE
array = a[1];
#else
array = a[0];
#endif
printf( "An honorary doctorate award "
" is issued to %s\n",
array[CHOICE] );
}