It is giving error please help
my code - https://ide.codingblocks.com/s/51588
Hi, please share the link of the question as well.
Hey, error is because you can’t compare a character with a string, so update your code’s line:13 as for(int i=0;b[i]!='\0';i++). Apart from that your logic is also not correct think a little bit more on it, there is no need to take the freq array.