0

a little help please

#include <stdio.h> int main() { char first_name[15] = "Belinda"; char name[16]; printf("whaty is your name\n"); scanf("%s",&name); if(name!=first_name){ printf("hie\n"); } else{ printf("bye\n"); } return 0; }

12th Mar 2020, 8:38 AM
Bleigh T.J Bande
Bleigh T.J Bande - avatar
2 Respostas
12th Mar 2020, 8:42 AM
A͢J
A͢J - avatar
+ 2
You are comparing arrays and not Strings.
12th Mar 2020, 8:41 AM
Avinesh
Avinesh - avatar