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.
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top