-
How to be a C programmer - Part 2
C is a beautiful language and the single most consistent language ever concieved. That's of course a matter of personal view. It's not the easiest language however. It's what is a called a medium level language. A low level language would be a language like assembly. When programming assembly you write a program that will only be understood by a specifc computer chip (intel, amd, motorola) and deal a lot with technical stuff. So much so that you get very little of practical value done.
In a high level language (PHP, Python) you (almost) never think of technical issues. You focus on the content of what you are doing. The drawback is that those languages tend to be designed for specific purposes and are more suitable for one purpose rather than another. PHP can only do webprogramming. Perl was originally designed for writing reports.
C is medium level. You mostly deal with the practical stuff but there are many technical snags that can make you trip up. You just have to know the guts of the machine.
example
int result = 7 / 2;
The answer put into 'result' will be 3, not 3.5 as you might expect. Variables of the type 'int' can only cope with whole numbers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks