#include <stdio.h> void main(void) { char **input_pass; scanf("%s", &input_pass); if (input_pass == "123") { return printf("Equals"); } else { return printf("You made mistake"); } } I do not understand why there is an error. If I enter 123 displays "You made mistake". If I enter something else, it displays "You made mistake" and an error: 
Thanks to all. Here's how to solve the problem:
#include <stdio.h> #include <string.h> int main() { char **input_pass; char main_pass[] = "123"; scanf("%s", &input_pass); if (strcmp(&input_pass, &main_pass)==0) { return printf("Equals"); } else { return printf("You made mistake"); } return 0; }