Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
C as first language?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="glen herrmannsfeldt, post: 5162257"] Maybe a little low, but if you want to simplify it enough that someone can get started before learning everything, not so bad. I was remembering not so long ago, that I wrote my first OS/360 assembly program before understanding base registers. (Fortunately I didn't write over the base register.) It was a Fortran callable function (C hadn't yet escaped from Bell Labs), and I followed a template that showed what comes first and last, and put what I wanted in between. One should be able to write at least one C program before one needs to learn about pointers, and maybe a whole first book full. In the early days of C, it was often both faster and smaller (code generated) to use pointer operations instead of indexing. That is: for(i=0;i<n;i++) *s++ = *t++; instead of: for(i=0;i<n;i++) s[i] = t[i]; (Yes, technically, s and t are still pointers, but you don't need to know that to write the loop.) Besides, it makes it easier if you need to use s and t later. Some people I know like the "Head First" series of books, maybe good enough for beginners, but not quite dummies. -- glen[/i][/i] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
C as first language?
Top