// decides if word is in first or last half of alphabet
#include<iostream.h>
#include<conio.h>
void main()
{
char word[20];
cout<<"Enter a word ";
cin>>word;
if(word<= "m")
cot<<word<<" is in the first half of the alphabet"<<edl;
else
cot<<word<<" is in the last half of the alphabet"<<edl;
getch();
}
Does your code compile? If not, what are the exact compiler error messages?
If it compiles, does it crash on running? If yes, how far does it get before the crash?
If it runs to completion, does it produce expected result?