|
-
March 5th, 2003, 08:16 AM
#1
A help
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);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|