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
Related
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 1 year ago.
Improve this question
Is the ^ operator available in the C language? I have tried using it but it gives a faulty output.
Does it denote raising an integer to the power of something
It works just fine and means bitwise XOR. That is, 1^2 gives 3.
Unfortunately C doesn't provide a function to take power of integers. This is a known flaw of the language. You have to roll out such a function yourself either by using multiplication in a loop, or use the slow floating point function pow.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
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.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
First time seeing this, what does this mean? Specifically the &a[i] part.
scanf("%d",&a[i])
This looks like C code that has been converted to HTML entities, so that it can be displayed on a web page. & is how you enter an & character in HTML. If you look at it in a web browser you'll see the intended C code, which is
scanf("%d",&a[i])
&a[i] means the address of the ith element of the array a. So this reads an integer from standard input, and stores it in a[i].
Don't try to read C from the HTML source code.
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 would like to cross check a C implementation of the CRC64 ECMA-182 algorithm.
I tried a different C code snippet I found online and I tried two online CRC calculators but each of them returned different results.
Is there some reference implementation or reference data that allows me to get a reliable reference checksum?
The EMBL-EBI web site has an online checksum calculator, that is used in the context of bioinformatics for analysing protein or genome sequences:
http://www.ebi.ac.uk/Tools/so/seqcksum/
that supports many different methods, included the CRC64-ECMA-182. You can paste your input sequence directly in the form and it will return the checksum. The problem is that the input is a sequence must be one from a set of fixed formats:
http://www.ebi.ac.uk/Tools/so/seqcksum/help/index.html#sequence
However those formats are quite simple, for example the FASTA (link)
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
Is there a Code Koans Set for C or Lisp?
I've found Koans in this languages, but no one in C or Lisp:
Ruby: http://rubykoans.com/
JavaScript: https://github.com/mrdavidlaing/javascript-koans
Clojure: https://github.com/functional-koans/clojure-koans
Scala: https://github.com/rubbish/scala-koans
May the following apocryphal stories and parables from the heyday of UNIX, C and LISP bring you some fun and enlightenment.
AI koans
Rootless root
They exist for Lisp now but not yet for C. There are C++ Koans though:
Lisp Koans
C++ Koans
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.