I'm learning programming. This program is in C, it's a simple program, but I don't know how to fix this error C2040. Error is on lines 7 & 8.
Code:
#include <stdio.h>
#include <string.h>
int n = 0;
char Q[8];
char *H, *T;
H = Q; //error line
T = Q;// error line
int main(){
int choice;
//int count = 0;
menu:
printf("1 EnQ\n 2 DeQ\n 3 Print\n 4 Exit\n");
scanf("%d", &choice);
switch(choice){
case 1:{
EnQ();
goto menu;
}
case 2:{
DeQ();
goto menu;
}
case 3:{
Print();
goto menu;
}
case 4:
return 0;
}
return 0;
}
Comment