Unable to print output

Compiling my code shows no error but still, it doesn’t display anything in the output.
Here is the link to my code: https://ide.codingblocks.com/s/359036

hello @Divye-Aggarwal-3050062625037589
u need to print character whose frequency is high but u r printing frequency by converting it to char

check now->

Thanks Sir !! I got where I was going wrong. Btw is my logic okay or can it be improved ?

its most optimised one

Okay sir. thank you. Just one more thing, why have you removed “int” in the for loop ?
image

u can use int as well,but then it will be redundant because compiler will by default take its ascii value

1 Like

ohh okay. got that. :+1:t2::+1:t2: