Can anyone tell me why I'm getting "number 1" as my output when i enter arguments 1, 2, 3. It seems like its always 1 and I don't know why.
int main(int argc, char *argv[]) {
if (argv[1] = "1"){
printf("number 1");
}else if(argv[1] = "2"){
printf("number 2");
}else if(argv[1] = "3"){
printf("number 3");
}else{
printf("Missing a case number");
}
}