Fresher in programming.Advice needed

  • Thread starter Thread starter samieee
  • Start date Start date
Click For Summary

Discussion Overview

The discussion centers around seeking advice for beginners in programming, specifically in the C language, as a student prepares for an introductory programming course. Participants share resources, strategies, and key concepts to focus on for building foundational programming skills.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant suggests downloading a free C compiler and experimenting with simple programs to gain practical experience.
  • Another participant recommends using Wikibooks for a comprehensive guide on C programming and mentions the benefits of gaining command line experience with Cygwin for Windows users.
  • A parent shares insights from their daughter's experience in computer science, emphasizing the importance of understanding data types, type conversion, stack vs. heap memory allocation, and file handling in C.
  • Further emphasis is placed on learning about data structures, specifically structs, and how to manage memory allocation on the heap and stack.
  • Participants highlight the significance of pointers and arrays as crucial concepts in C programming.

Areas of Agreement / Disagreement

Participants generally agree on the importance of foundational concepts in C programming, but there is no consensus on a single best approach or resource for beginners.

Contextual Notes

Some suggestions depend on the specific operating system being used, and there may be varying levels of familiarity with programming concepts among participants.

Who May Find This Useful

Students beginning their studies in programming, particularly those enrolled in introductory courses in computer science or electrical engineering.

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 similar. ( 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...
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
Replies
16
Views
3K
  • · Replies 397 ·
14
Replies
397
Views
22K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
Replies
69
Views
11K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
6
Views
3K
Replies
11
Views
1K
  • · Replies 15 ·
Replies
15
Views
4K