Can someone tell me why my code isn't printing "it worked" when I input 'In' into the console?
Code:int main (int argc, char *argv[]) {
int i;
char* input="";
struct node2d *p2d=NULL;
for (i=argc-1; i>0; i--) {
p2d = make2dnode(argv[i], p2d);
};
print2d(p2d);
printf("Enter command: ");
input = getchar();
if(input=='I' && (input+1)=='n')
printf("it worked");
return 0;
}