User info | |
---|---|
User name: | eltony |
Old user name: | eltony333 |
Bio: | ar* copy(char source[]){
char *dest; dest=(char*)malloc(sizeof(char)*30); int i = 0; while( source[i] != '\0' ){dest[i] = source[i]; i++;} dest[0] = toupper(dest[0]); dest[i]='\0'; return dest; } int main(){ char source[30]; printf("Write a string: "); scanf("%s", source); char *ciel = copy(source); ciel[0] = toupper(ciel[0]); printf("source: %s dest: %s\n", source, ciel); |
History | |
Joined: | |
Number of posts: | 1 |
Latest posts: |
fact by elton |
This user does not accept Private Messages