char pass = "password";
You are trying to assign a string char. This will not work! Instead, you need to declare passas char[]follows:
char pass[] = "password";
The following problem:
if(argc == pass)
argc- the number of command line arguments passed to your program (including the name of the program as the first). You want argvone that contains the actual arguments. In particular, you probably want to argv[1].
argv[1] == pass, . , strcmp(). 0, ( , ). , , ; . (sniped from @caf)
, :
if (strcmp(argv[1], pass) == 0)
, . , . , .