Fresher in programming.Advice needed

  • Thread starter Thread starter samieee
  • Start date Start date
AI Thread Summary
To prepare for a programming course in C, it's essential to start by downloading a free C compiler and experimenting with simple programs. Recommended resources include cprogramming.com and Wikibooks for structured tutorials. For Windows users, gaining familiarity with a UNIX-style command line through Cygwin can be beneficial, as it includes the GCC compiler. Key concepts to focus on include understanding data types, type conversion, stack vs. heap memory allocation, and how variables are passed to functions. Learning about file streams and formatted data input/output using functions like printf and fprintf is crucial. Additionally, grasping data structures, particularly structs, and mastering pointers and arrays will provide a solid foundation for success in introductory computer science courses.
samieee
Messages
67
Reaction score
0
Hi all

I am student of electrical engineering.Upcoming fall semester I have taken the course 'programming language 1' where the language C is taught.I have no earlier experience in programming.I want to gain some early experience in programming (especially C) before the class starts.Where from should I start? which books,tutorials could help me?How can I get a strong basic concept in it?Please give me suggestions.

thanks
 
Technology news on Phys.org
I assume you have access to a computer? Download a C compiler (they are generally free) and start playing with simple programs. There are lots of web sites with tutorials and stuff to get you started. One good one is:

www.cprogramming.com/
 
Wikibooks has a pretty good C version:
http://en.wikibooks.org/wiki/C_Programming

If you are working on MSWidows I recommend getting a little UNIX style command line experience using the free fake-unix from cygwin. I believe this includes the GCC compiler so you don't have to go get more stuff:
http://cygwin.com/

If you think you might be doing embedded programming as an EE, then the command line stuff is very useful. Microchip has a good (free) C compiler for their PIC chips and some academic discounts too:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en536656
 
Last edited by a moderator:
My daughter is starting her 2nd year as a CE major. She just went through her first CompSci course and they still do the same old stuff.

The other postings give some great resources.

What I would specifically focus on is learning each data type, and how C handles type conversion ( both implicit and explicit ).

Understand the difference between the stack and the heap, and how to allocate varaiables on each. ANd how variables are passed to functions and returned.
( the above will include pointers and malloc so it is a key learning experience ).

Learn file streams. Open a file, create a file. Write formatted data to a file ( fprintf ). Printf, sprintf, and fprintf , with scanf and such are all similiar. ( fprintf and printf are the same, except for the filestream). Learn the formattting specifiers.

THe above will pretty much cover your first course. If you can nail the above, then you will ace comp sci 101.
 
OH I forgot, data structures.. learn struct. and how to allocate on the heap and on the stack. and how to pass one to a function that modifies the global copy.
 
Pointers. Pointers. Pointers. And Arrays...
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top