Between parenthesis

why function in my given code is not returning anything. link to my code is
http://ide.codingblocks.com/#/s/17468

Save all the characters that you are saving in srting temp in a character array and then convert it into string then return this string
Always prefer char array over strings to pass through the functions
Here i modified ur code , its working fine. What ever question is , ur code will work only for the case when the given strings have consecutive ‘(’ and then ‘)’ (If question is for other case as well then just add the base case in “between” fucntion.
http://ide.codingblocks.com/#/s/17523

Ok sir this is about the solution to my problem but can u explain why that problem was occuring if we are not making a copy of that string. Why we cant just pass temp string directly instead of making a copy of it into another string ?

Both way will work just u need to use it carefully . Character arrays is already initialised with a space (" ") but string is initialised with having no character initially . So if you want to do this using string just initialise temp with " ". It will work fine .
http://ide.codingblocks.com/#/s/17544

Bhaiya it is printing only first letter after the bracket or only the first character of temp string. Please solve this issue. For input vaibhav(sahai) it is giving output as s only not sahai

Send me the Qn link ,…

vaibhav check this
http://ide.codingblocks.com/#/s/17592

Bhaiya yes it is working now but can u explain me exactly what was wrong with the my previous code which was resulting into wrong output and what happend when i initialised the string dat it strted returning to main rather den wen i didnt initialised that it will help me to improve my mistakes further also.