Code:
#include <stdio.h> // This needs to be here for printf()/scanf()
int main(){ // main() should always return an int
char c;
printf("Enter charactor");
scanf("%c",&c);
if(c=='a')
printf("Yes");
else // Without this here, it would print Nope even if the letter was an 'a'
printf("Nope");
return 0; // Again, main() needs to return an int
}
One more thing: Turbo C sucks. Download a free C compiler from this century. Something like Dev-C++, Pelles C, or Microsoft Visual Studio Express.
And in the future, please say what output you actually expected instead of just saying that you didn't get the expected output.