answersLogoWhite

0

Programming Languages are a form of comunication between a programmer and the hardware. So the code written in C has to be compiled/transformed into machine code (similar to Assembler) so that the hardware can understand what to do. Compilation leaves your code ready to excecute. Withought it you only have the recipe of what the program does.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
ReneRene
Change my mind. I dare you.
Chat with Rene
More answers

Because source code can not be executed directly, first you have to produce an executable program from it. That's what you call compilation.

User Avatar

Wiki User

16y ago
User Avatar

You don't have to, only if you want to execute your programs.

User Avatar

Wiki User

13y ago
User Avatar

Only if you want to get an executable program.

User Avatar

Wiki User

13y ago
User Avatar

Add your answer:

Earn +20 pts
Q: Why we have to compile a c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp