I've been trying to make a small program for someone who is about to have their birthday and well, sadly I'm stuck in the first part, I insert
#include <stdio.h>
#include <stdlib.h>
int main(){
char name[10];
printf("Please enter your name. \n");
scanf("%s", &name);
if(name=='Mariana'){
printf("Hello Onee-sama");
}
else if(name=='David'){
printf("Im sure you're not my master");
}
else{
printf("Sorry, you are not authorized");
}
}
(I plead you ignore the abnormalities) and When i run it, whatever name I insert, it gives me the else response. I would really appreciate help :)