求助怎么把int*里的字符串输出来
希望大家可以帮助我一下
#include <stdio.h> #define DEBUG_A 0 #define DEBUG_B 1 #define DEBUG_C 2 #define DEBUG_D 3 int main(int argc, char* argv[]) { int a[]={DEBUG_A,DEBUG_B,DEBUG_C,DEBUG_D}; char* b[]={"DEBUG_A","DEBUG_B","DEBUG_C","DEBUG_D"}; int i; for(i=0;i<4;i++) { if(i==a[i]) printf("%s\n",b[i]); } return 0; }