In C programming How to return arrays from a user-defined-function?I have tried doing it but always returns an error.Are there any Exceptions to this? or you just can't return functions in c Programming?
            Asked
            
        
        
            Active
            
        
            Viewed 32 times
        
    0
            
            
        - 
                    1Does this answer your question? [Returning an array using C](https://stackoverflow.com/questions/11656532/returning-an-array-using-c) – Hitokiri May 12 '20 at 21:12
- 
                    1Can you show us the code btw? not that it's 100% necessary, but it would help. – jlhs May 12 '20 at 21:13
- 
                    Arrays cannot be returned. The usual substitute is to return a pointer to an array of data. – chux - Reinstate Monica May 12 '20 at 21:43
- 
                    Learner: Rather than only describe how code performed, "I have tried doing it but always returns an error.", better to post code. – chux - Reinstate Monica May 12 '20 at 21:47
