code–https://ide.codingblocks.com/s/388034
my code works but when im not entering anything its giving segmentation error, why so?
ques–@02:26:48
Rotate the string
Hello @aaliyah_beg please share the question link as well. Sp that i can go to through the question as well.
Given a string rotate it by n characters. e.g. if the string is CodingBlocks and n =3 then the output should be cksCodingBlo
Hello @aaliyah_beg as you are asking for input in the question but if there is nothing in the input then it will try to seek for input unitil it finds and eventually it will end up by giving segmentation fault.
but sir in other ques if this was the case then i always got compilation successful and output is empty
Actually it depends on questions and logic as well.
if you dont give input then it will not give compilation error in all cases.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.