Including .c and .h Files in RobotC

What is the difference between including a .c file and a .h file in RobotC? For example, the competition background code is .c, but is there any difference if it is .h?

In ROBOTC, there is no difference between including a .h file and a .c file. ROBOTC does not have a linker, and so both .h and .c files simply get their code pasted in the location where they were included (if I am not mistaken).

ROBOTC allows you to include *.c files to keep simplicity, which is legal in C and a terribly bad habit. So please unlearn this as soon as you leave ROBOTC :slight_smile: