encypting a string
#include <stdio.h>
void encrypt(char * c)
{
char *ptr=c;
while(*ptr!='\0')
{
*ptr=*ptr+1;
ptr++;
}
}
int main(){
char str[]="Anchal";
encrypt(str);
printf("The encrypte string is:%s",str);
return 0;
}
#include <stdio.h>
Comments
Post a Comment