Ok me and my friends wanna make this simple program, to give us some expirence to make more, but to start we wanna make this one that disses one of our last names.
can you tell me why when we enter coss it says thats a cool last name instead of he is a homo.
please help, I just started C a month ago so im not to skilled at allCode:#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char string[50]; printf("Enter your last name...\n"); fgets(string, 50, stdin); if(string=="coss") { printf("you're homo\n"); } else { printf("That's a cool last name\n"); } return 0; }