I could see you are very new to programming. So it will be better you start the basics of C programming. Any good beginners C book will help you. Once you learn the basics of C then you can move on to Arduino programs.
Beginners C book will teach you.
- Syntax of C program
- Variable decleration and scopes
- Conditional statements
- Functions
Then mixing all the above. Once you do that you will be very comfortable to deal with Arduino.
When I started I can understand programming very well but Electronics was totally new to me ![]()