Re: [PIC] Learning C

Neil <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.pic
Message-ID <[email protected]>
Agree with a couple things from other comments such as C being 
high-level assembler and using a PC at first (you can just use gcc 
already on Linux).

Already knowing a structured language is very helpful.
But IMO you'll have to wrap your head around pointers, which can get 
confusing. I find this C visualizer very helpful for figuring out some 
algorithm... https://pythontutor.com/c.html

One more note: = != ==
Or in other words, the equal sign ( = ) and the double equal size ( == ) 
are very different things in C. The first assigns a value and the other 
compares values. But people new to C will invariably use a single equal 
for a comparison and the code is true every time, as C will compile it 
as valid code, do the assignment, then the comparison. You have been 
warned ;P

We all learn in different ways... my preference is to find a basic 
intro/tutorial, then come up with a project and start learning the 
topics I need as I go along. Later I can go back and read more advanced 
tutorials.

Cheers,
-Neil.




On 11/10/2024 1:29 PM, David C Brown wrote:
> Although I enjoy programming in Assembler, the fact that so many libraries
> abd code examples are in C I think that the time has come for me to learn
> that language.
>
> Any advice on how to do that would be welcomed, be it a book or online
> resources.
> I am a competent programmer having programmed in  with Forth, Fortran.
> \Pascal, Visual basic
> __________________________________________
> David C Brown
> 43 Bings Road
> Whaley Bridge
> High Peak                           Phone: 01663 733236
> Derbyshire                eMail: [email protected]
> SK23 7ND          web: www.bings-knowle.co.uk/dcb
> <http://www.jb.man.ac.uk/~dcb>
>
>
>
> *Sent from my etch-a-sketch*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.