Hello @Jishnu elembilasseri,
welcome to this moderated Azure community forum.
You can connect devices to the Azure IoT Hub with multiple languages, each having an Device SDK.
Check the link, there you also see samples for the C language listed.
If the language choice is not fixed, check out these Python and C# examples too.
If you need some free MS Learn training modules about Azure IoT, check out this collection.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.