What is wrong with this code? I'm trying to compare string and white space.
void main()
{
char d;
int i;
char* mystring="Vikram Natarajan";
char c=mystring[0];
printf("%c\n",c);
for(i=0;i<100; i++)
{
if(mystring[i]==" ")
{
d=mystring[i+1];
}
}
printf("%c\n",d);
}