hi,
I have this code,why is the displayed result "false"?
I have this code,why is the displayed result "false"?
Code:
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char name[6]="MEHMET"; /* 6 characters */ char name1[6]="MEHMET"; if (strcmp(name,name1) == 0){ printf("true"); }else{ printf("false"); } return 0; }
Comment