Java is designed to be fully object-oriented while C is a procedural language. I suggest looking at http://www.tutorialspoint.com/cprogramming/c_overview.htm to read about C. Java is not meant to be used for procedural. This is all I can do to help. You need to do some research on the programming paradigms.
Practical Explanation : Can anyone Explain the difference between POPS and OOPS with Example?
1
solved Object Oriented Programming vs. Procedural Programming [closed]