C

Asked • 06/12/19

Why do all the C files written by my lecturer start with a #?

Why do all the C files written by my lecturer start with a #?I'm going through some C course notes, and *every* C program source file begins with a single `#` on the first line of the program.Then there are blank spaces, and following that other stuff followed by the `main` function.What is the reason for the `#`?(It's out of term now and I can't really ask the chap.)Here's an example (there is an extra line at the end of the closing `}`) # #include <stdio.h> int main() { printf("Hello, World!"); return 0; }

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.