Hi Gurus,

I would like to know what is wrong in the below code. I am a CAD operator I rarely work in API for small automation.

Thanks and Regards,
Abbas

#include <stdio.h>
main()
{
char *new,*temp,*c;

new="abcdefghijklmnopqrstuvwxyz1234567890";
c=strchr(new,'\0');
while(c>=new)
{
printf("%c",*c);
*temp++=*c--;
}
*temp='\0';
temp++;
printf("%s\n",temp);
printf("\n%s",new);

}