My prob' is that when I type 'Amanda' when the program asks for my name, it returns Hi. I want it to return Howdy when I input 'Amanda', and hello for all other strings.
This is my program:
#include <stdio.h>
int main()
{
int nothing;
char namn[20];
printf("What's your name?\n");
scanf("%s", name);
if(name == "Amanda")
printf("Howdy");
else
printf("hello");
scanf("%d", ¬hing);
return 0;