//Q88. Replace spaces with hyphens in a string.
#include <stdio.h>
int main() {
char str[200];
int i;
for(i=0; str[i]!='\0'; i++)
if(str[i]==' ')
str[i]='-';
}
Ly9RODguIFJlcGxhY2Ugc3BhY2VzIHdpdGggaHlwaGVucyBpbiBhIHN0cmluZy4KI2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgY2hhciBzdHJbMjAwXTsKICAgIGludCBpOwogICAgZ2V0cyhzdHIpOwogICAgZm9yKGk9MDsgc3RyW2ldIT0nXDAnOyBpKyspCiAgICAgICAgaWYoc3RyW2ldPT0nICcpCiAgICAgICAgICAgIHN0cltpXT0nLSc7CiAgICBwcmludGYoIiVzIiwgc3RyKTsKfQo=