With this code, no matter what I type in I can never get "Correct"Code:#include <stdio.h> int main(int argc, char* argv[]) { if(argv[1] == "mytext") printf("argv[1] Correct\n"); else if(argv[1]) printf("argv[1] found but not correct\n"); else printf("argv[1] not found\n"); return 0; }
why is this and what can I do?
Here is what the array looks like if I type in mytext:
[m][y][t][e][x][t][\0]
right?