Freshman in an electronic engineering program

AI Thread Summary
A freshman in an electronic engineering program is considering whether to learn C++ alongside their required C programming course. While C++ is a superset of C, some hardware strictly requires programming in C, particularly for embedded systems. The discussion emphasizes that C is often preferred for real-time programming in such contexts. A recommended resource for learning C is the K&R textbook, which is noted for its completeness in the current edition. Ultimately, focusing on C initially is advised, with the option to learn C++ later.
exis
Messages
22
Reaction score
0
Hi,

I'm a freshman in an electronic engineering program in university. Throughout the course we're supposed to learn how to program using C. I was wondering if it would be a good idea to learn C++ on my own instead. From what I gather, C++ is a superset of C however I've also been told that some hardware can strictly be programmed only using C. Is this true? If yes, are there any C ebooks/books that you suggest I use to learn C?

Thanks in advance
 
Engineering news on Phys.org


exis said:
Hi,

I'm a freshman in an electronic engineering program in university. Throughout the course we're supposed to learn how to program using C. I was wondering if it would be a good idea to learn C++ on my own instead. From what I gather, C++ is a superset of C however I've also been told that some hardware can strictly be programmed only using C. Is this true? If yes, are there any C ebooks/books that you suggest I use to learn C?

Thanks in advance

I use C a lot for embedded system real-time programming. C++ would probably work as well, but the embedded systems I work with use a real-time extension of C, so C++ is not an option.

The standard textbook for C is K&R. The first edition left a lot to be desired, but the current edition is very complete and userul, IMO:

https://www.amazon.com/dp/0131103628/?tag=pfamazon01-20

.
 


C it is then... Thanks for replying berkeman
 


C and C++ are similar, it might be useful to pick up C++ later on.
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top