A very common mistake is to forget that semicolon, so when you try and compile the compilor gives you an error. For example, most programming languages make you put a semicolon ( ) at the end of every line. This means the compilor they used checks to make sure their program is written correctly according to the rules of the programming language. Something you may run into is people saying code does or does not compile. The very short version could be, yes, compile means to make the code executable. When you compile code, the compilor (usually another program) takes the program the human wrote, and converts it into the program the computer can understand (i.e. These languages look a lot more like English, so they're a lot easier to write and maintain. So we made higher level languages like Java and C# to write code in. However, since we still need humans to write our programs, putting everything in 1's and 0's (called machine language) would be very difficult. When the computer runs a program, the program itself is made of a bunch of 1's and 0's. As you may know, everything in a computer is represented by a series of 1's and 0's (which themselves represent high and low voltages on transistors, but that's a topic for another time).
0 Comments
Leave a Reply. |