prog.c: In function 'RemoveDuplicates':
prog.c:17:11: error: expected ';' before 'while'
while(str[k] != '\0')
^
prog.c:29:5: warning: 'main' is normally a non-static function [-Wmain]
int main() {
^
prog.c: In function 'main':
prog.c:37:23: warning: passing argument 1 of 'RemoveDuplicates' from incompatible pointer type [-Wincompatible-pointer-types]
RemoveDuplicates(str);
^
prog.c:4:6: note: expected 'char *' but argument is of type 'char (*)[50]'
void RemoveDuplicates(char* str)
^
prog.c: In function 'RemoveDuplicates':
prog.c:40:1: error: expected declaration or statement at end of input
}
^
prog.c:6:23: warning: variable 'k' set but not used [-Wunused-but-set-variable]
int a = 0,j,i = 0,k;
^