please tell me how to find inverse of a nxm matrix in C programming language
Only square matrices have inverses. So you can only find the inverse of an n x n matrix.
To compute this inverse you should write a function which implements gaussian eleimination (the simplest method) where the right hand side is the order n Identity matrix.