Where can I learn more about pointers? [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I do not understand pointers. Where can I learn more about them?

The best way to understand pointers is to write assembly, I found.

try http://home.netcom.com/~tjensen/ptr/pointers.htm

Richard Buckland's lecture about pointers is highly recommendable.

I personally like the quite straightforward cplusplus.com tutorial on pointers.

My C language bible is "C-The complete Reference" by Schildt. Chapter 5 is all about pointers.
If you just think of the pointer as being the address of something - like the address in a letter telling you how to find the house - then you will be most of the way there.

Deitel & Deitel C how to program
C++ version of the book preview on Google Books

Pointers on C (Paperback)
by Kenneth Reek (Author)
http://www.amazon.com/Pointers-C-Kenneth-Reek/dp/0673999866

Lot's of great references suggested. I'd just like to add one thing:
Play with them!
Once you understand them on the theoretical level from the books, articles, lectures, videos above then you should set yourself to some task that that will allow you to make mistakes, find those mistakes and fix mistakes.
Think about implementing something like a linked list (double or singly linked), binary tree, or similar data structure. Then write some code to insert and remove values from your structure. In completing the task you'll definitely feel more comfortable with them, and get some experience debugging pointer problems.

Related

Math Library in C & Exersices [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I tried to find a good place to ask my question, which isn't programming, though it implies programming in C.
Our schoolteachers told us that we need to start exercise our programing skills, in C, based on math exersices. Even if I search the web for the best ways to solve such exersices and I came up with the Math library [<math.h>] I couldn't find a good page with many examples of solving exersices. My best course so far is Wikipedia but I can understand the fact that the Wikipedia can't store all the functionalities the library gives. I even looked in some examples want to find a complete coursebook for sovling all good math exersices we can make with a paper and a pen!
Have anyone any good idea?
So, you are trying to learn programming to solve math problems, that's good. But, I think you are getting a wrong idea about programming, Programming does not solve problems for you. To solve a problem, you have to decide on an algorithm to solve a problem and then create programmatic statements, in whichever language you like, then the program that you have created will give you an outcome based on the algorithm. You have to take the outcome and then decide yourself for further study.
for example
finding a factorial of a number
int i = number;
fact = 1;
while(i > 0)
fact * = i;
this way you will get a factorial of the number you specify, It is you who has to decide whether your algorithm is working fine, by comparing it with manual work, or with records. As you can see, the above program is an infinite loop and it is me who has to debug such issues, the program does not do that. Then What does a program do, it just automates what you do manual and help you save time and improve efficiency at work.
So to solve exercises, you have to understand problem statements and then script a program. I see you are talking about math library, we have good resource online to study important math functions which are highly useful, for in depth understand of their working open up the library files and study.
A Program can never solve your problem without you writing it, and deciding on its efficiency
See if this cmath solves you problem.
Header <cmath> declares a set of functions to compute common mathematical operations and transformations

Is it possible to google for C without getiing C++ in the results? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I know this isn't really a programming question but I wondered if anyone knew if there was a way of constructing a google query that returned results about the C language without results for C++.
Use your normal search value and add -c++ and -cpp(including the minus symbol)
Try something like: c programming -"c++"
Appears to work on quick inspection.
Advanced Google search
The advanced options for Google allow you to ban words, so you can just ban "C++" and whatever else you don't want.
Yes, you can!
c -++
for example : searching for new york without hotels
new york -hotel

Taking notes when programming? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I just got my first programming book, and I just started programming.
I have a little question. Should I take notes while reading the book, or should I just memorize, and refer back if I forget something?
Thanks
Never read from just 1 book, read multiple books on the subject to get a better picture.
for C read The C Programming Language, How To Program - C, C: A complete reference and then C a reference manual(by Harbison and Steele) touching on at least C99
Take notes, keep a book handy at all times - think before you ink though.
Always sit by a computer + text editor + compiler (yes, do not use an IDE - learn with manual compilation)
Learn good debugging techniques, gdb is fine to start off with(although has a significant learning curve)
Be attentive to what is being said in the books and - also do not forget to experiment all the time. Programming is best learnt by doing it/practicing it.
The best thing to do is to understand what is being said to you by the book, I've tried memorizing before.. it doesn't work I would suggest a bit of both, but mostly understanding it that way you would know what you are coding also practice your level of confidence of coding will increase and you'll continue to want to code more.

What's a good way to get c information? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
What I mean by this question is unlike other programming languages where I could simply just google the phrase "implementing comparable interfaces java" or "graphics drawing python", whenever I google a C problem, it seems that the majority of the results are about C# or C++
I've tried saying ANSI C or C99 instead but that's not too successful. I lent my friend in college my K&R C bible, is there any websites that are good definitive c sources?
http://www.cprogramming.com/
Also that K & R C book is available as a pdf :)
What seems to work well for me is to put what I am looking for and follow it with " in c programming"
so if I wanted info on using structs in c i would put "structs in c programming"
Once you get a good grasp as how OO works, you can transfer algorithms and patterns to C easily.
Also, currently the best C referente IMHO is StackOverflow.com.
I have a good C reference book called C Programming FAQ. I found a similar website that helps tackle most of the common problems.

Tool to explain C code [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I remember from some time ago reading about a commandline tool that explains C code, does anyone know what it might be named?
Perhaps you mean cdecl, a program that can translate complicated declarations to English and back?
e.g.
cdecl> explain int (*(*foo)(int ))(float )
declare foo as pointer to function (int) returning pointer to function (float) returning int
If you mean explaining then I think the answers already been given. If you mean looking for potential problems then there's lint and its variants, first stop in any code review.
http://en.wikipedia.org/wiki/Lint_programming_tool
Edit:
C/C++ Free alternative to Lint?
HTH

Resources