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; }
2 Answers
+ 4
Bleigh T.J Bande Check here how to compare String in C
https://www.programmingsimplified.com/c-program-compare-two-strings
+ 2
You are comparing arrays and not Strings.