Hiya, this is probably really simple, but i have this code:
Code:
int main () {
char get;
/* Ask if users wants to encrypt or decrpyt */
printf("Do you want to encrypt or decrypt data? Type E for encrypt, D for Decrypt.:\n");
scanf ("%c", get);
if (get == "E")
encrypt();
else
decrypt2();
return 0;
}
but when I compile it, it says nonportable pointer conversion in function main, at the line: if (get == "E")
and it crashes if I run it anyway.
I' ve tried changing this, but still doesn't help. I'm not sure what wrong? please help.