Code samples for beginner C programmer

Try a Google search for C tutorials. Honorable mention: please start out on something else like C++, or if he/she is still very young, maybe something a little more fun like VB.net is an option as well.
 
How old is he / she?

I'd recommend doing C only if you know you need to learn C, it's a hard language to learn programming with, especially if you're reading other peoples' samples. The previous suggestion of VB.net or Python maybe would be more accessible.
 
Just because something is hard doesn't mean the kid won't get it (even eventually)


*spit* on the comments saying choose something "fun" (FUN??) or "easy" like VB.NET

Python...maybe... but if you really want to throw the kid into the deep end and have them learn proper programming techniques/languages, start with C or C++

Never let your kids code VB.NET as a starter language if you can help it. They can always just learn it within 1 - 2 hours when they're already experienced enough to smash other languages
 
Just because something is hard doesn't mean the kid won't get it (even eventually)


*spit* on the comments saying choose something "fun" (FUN??) or "easy" like VB.NET

Python...maybe... but if you really want to throw the kid into the deep end and have them learn proper programming techniques/languages, start with C or C++

Never let your kids code VB.NET as a starter language if you can help it. They can always just learn it within 1 - 2 hours when they're already experienced enough to smash other languages

^^^ that

If they start with C / C++, they will move on to Python, Java or C# with no issues
 
^^^ that

If they start with C / C++, they will move on to Python, Java or C# with no issues
Or they might just not like the idea of programming and quit it all together. Really, there is a reason they don't teach C and C++ in schools.
 
Or they might just not like the idea of programming and quit it all together. Really, there is a reason they don't teach C and C++ in schools.

One of the biggest skills you need as programmer is patience - if you decide you don't like programming because of a difficult language, then maybe its not for you

They use C++ as a teaching language in many universities around the world
 
Sure, if you have the aptitude then dive in to C/C++. I did, at age 13, but in retrospect if I had had a gentler introduction I would have stuck with it.

Some people have it, some aren't as talented. Those that aren't, shouldn't be sidelined because they take a bit longer. A gentler introduction could help them to be competent.

On the C/C++ topic there's a book that I found valuable called Accelerated C++. Forget the name of the author now but it helped me get back up to speed quite quickly after spending a few years mostly in Python.
 
^ that

And thanks, a google should help with finding code samples.

Of course I will help (having done C in my younger days)...

Just as a matter of interest. I registered my son with Edro - http://edro.co.za/ They do basic C programming using robotics and he seems to really like it (now doing module 2). Course consists of 4 modules over 4 or 5 weekends. Each module starts with one free class and if the kid doesn't enjoy it then they don't go back and you're not committed to having paid for a course that the kid is not interested in continuing.
 
In have learnt that the difficulty in programming C is directly related to whether the PC's reset button is on the front or the back of the PC. Well that was in the DOS days..... :o...
 
Sure, if you have the aptitude then dive in to C/C++. I did, at age 13, but in retrospect if I had had a gentler introduction I would have stuck with it.

Some people have it, some aren't as talented. Those that aren't, shouldn't be sidelined because they take a bit longer. A gentler introduction could help them to be competent.

On the C/C++ topic there's a book that I found valuable called Accelerated C++. Forget the name of the author now but it helped me get back up to speed quite quickly after spending a few years mostly in Python.

This was literally my story as well, it is very important to get a good introduction.

I would recommend Bucky/The New Boston's Tutorials as they were very good:

https://www.youtube.com/watch?v=tvC1WCdV1XU&list=PLDED25B8DC0FEF9A1
 
Everyone should start with C. 'nuff said.
 
Top
Sign up to the MyBroadband newsletter
X