Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make sure that I understand C pointers? [closed]

Tags:

c

pointers

Without any mentor, self-teaching myself with books and references on the web, how do I make sure that I properly understand pointers in C? What tests should I go through, what questions to answer to be sure?

like image 556
Max Yankov Avatar asked Jul 24 '11 00:07

Max Yankov


People also ask

Are pointers hard to understand?

Pointers are arguably the most difficult feature of C to understand. But, they are one of the features which make C an excellent language. In this article, we will go from the very basics of pointers to their usage with arrays, functions, and structure.


2 Answers

Try to answer questions about pointers here on Stack Overflow. This way you will find out very quickly if your understanding of pointers is correct or if other people disagree with the way you answered those questions.

like image 95
sth Avatar answered Oct 25 '22 15:10

sth


In K&R there are exercises that you can solve to see if you got it right. Also, you can look for some questions posted with solutions from various university (and not only university) C programming classes, and solve them (then compare to the solutions).

like image 24
littleadv Avatar answered Oct 25 '22 15:10

littleadv