Getting memory violation error when i use string function "strlwr", what wrong in step 3, please help, I am new to c language char *a="SAM"; char *c; c=strlwr(a); printf("%s",c); Thanks
You haven't initialised "a" correctly. Define it as an array of char, strcpy "SAM" into it, then strlwr should work as you expect.
You should initialize the char *a as following: char a[]="SAM"; I believe this will just solve your problem.