请告诉我我做错了什么
//I'm trying to get the number of the month by sending its name.
#include <stdio.h>
我的功能
int monthstr2num (char month[]){
if (month == "September")
return 8;
}
int main (){
char month []={"September"};
int num;
num = monthstr2num (month);//func call
显示错误的输出,如 37814040
printf ("%d", num);
return 0;
}