Can u read stirng

in this String Tokenizer Function on camelcase
it says add space and then use strtok but how can i add space to it?

@jatinupadhyay786 You can insert a space in the string if you come across an uppercase letter

what should be the approach for that

@jatinupadhyay786 shift all the charcters to the right to make space and insert charcter there

@jatinupadhyay786 this is a very expensive operation though…
You can alternatively try this approach
print characters normally, if you come across an uppercase character, print a newline character before printing that
This should also work and it is better in terms or space and time complexity

or can i print -? instead of newline character?

@jatinupadhyay786 the question requires you to print all the words in separate lines, if you print a hyphen instead, your output will not match with the expected output and code will not get accepted

my code is still not working https://ide.codingblocks.com/s/250861

another different aprroach i tried that is given in the soln is https://ide.codingblocks.com/s/250868

its getting compiled but still not showing output

@jatinupadhyay786 the approach that i mentioned is quite simple, please have a look https://ide.codingblocks.com/s/251054