• C

Learning a tutorial but memorizing a keep concept instead of understanding

I am doing self study on pointers using c language.
I am now learning 2d arrays

where
B[e][J]=*(B[e]+j)
          =*(*(B+e)+j)

I think I am memorizing
B[e]=*(B+e)

Do you think I should just start the tutorials from the beginning?
LVL 1
rgb192Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

phoffricCommented:
Good to memorize valid facts to help you program. If you are interested in professional job in C projects, that will not get you very far. Writing perfect code is rare, so you have to debug. Debugging C programs requires clear understanding of how the code translates into the memory.

I think you said your have this book: http://www.amazon.com/C-Programming-Language-2nd/dp/0131103628/ref=sr_1_1?ie=UTF8&qid=1408905909&sr=8-1&keywords=k%26r+ansi+c

If so, you can skip the first chapter which gives an overview and go into the details with understanding. (But I don't remember whether the subsequent chapters refer in any way back to chapter 1; in which case, you will have to read at least parts of Chapter 1.)

The hardest part of C, IMO, is pointers and multidimensional pointers.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
historychefCommented:
As a former C programming instructor who has led hundreds of students through the complexities of pointers, let me give you my advice: Draw pictures of the layout of memory. Use boxes for memory locations and arrows to indicate pointers. You don't have to be an artist to do this -- the crudest drawing will do -- but DO IT. Eventually, you will understand what the pointers mean and you won't have to simply memorize equivalences (although the one you gave is correct). This is essential when you start dealing with pointers to pointers (a common structure for implementing a multidimensional array). phoffric is absolutely right about the need to understand what's going on in the machine to debug your programs.
0
rgb192Author Commented:
okay pointers are difficult and I should start with basics of c instead of starting with c pointers.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.