Please tell me how to return array from the function i tried but getting error?
You cannot return an array , but you can the pass itβs address ,so that any changes you make stay there.
I changed your code to do so. Here is the link https://ide.codingblocks.com/s/187275