Message from C, C++ talks

July 2019

— 😂

— Where?!🤔

— E, bad english, sorry))

— No problem

— 

Hey, to practise I also implemented the function to add content to array:




void removeSpaces(char *str, int size) {

int i = 0;
int n = size;
char str2[size];
while(i < n) {
if(*str != ' ') {
str2[i] = *str;
i++;
}
str++;
}

printf("\n[OUT] %s", str2);


}

— Working too

— [*] Removing spaces of string: ev efwef fewf
[OUT] evefweffewf

— I did. They are very good points. Thank you for having me in this group.

— No

— Yes, it is

— I tested a few minutes ago

— Miss null char terminator

— You need to specify char array addr and char array filesize and should work

— Yes

— I forgot to post the updated one here