3

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?

SetSlapShot
  • 1,298
  • 1
  • 21
  • 48
  • 1
    A lot of C/C++ is similar- what specifically C topic are you interested in? – David B Jun 15 '12 at 13:29
  • 1
    Im sure there are, I just googled "ANSI C" and it came up with a whole bunch. What exactly are you wanting to reference? – trumpetlicks Jun 15 '12 at 13:29
  • My internship is working on the ffmpeg project which was written in c, but I'm trying to remember all sorts of things about c so really it's general reference – SetSlapShot Jun 15 '12 at 13:30
  • @DavidB: Only where it doesn't matter. That attitude can be dangerous, especially for beginners! – bitmask Jun 15 '12 at 13:31
  • [This](http://en.cppreference.com/w/cpp) is primarily C++, but it do have sections on [null-terminated strings](http://en.cppreference.com/w/cpp/string/byte) as well as [C-style I/O](http://en.cppreference.com/w/cpp/io/c), and most of the basic language constructs/operators/statements and basic types are the same in both C and C++. – Some programmer dude Jun 15 '12 at 13:32
  • @bitmask do you reccomend not reading too much into the C++ references then? – SetSlapShot Jun 15 '12 at 13:35
  • @bitmask I'd say the attitude is least dangerous for beginners. They can go ahead and throw around C++ strings willy nilly- it's the advanced programmers that think like this that are a problem. – David B Jun 15 '12 at 13:40
  • 1
    @SetSlapShot: Yes and no. If you want to do C++, do/read C++. If you want to do C, do/read C. My personal opinion is that you should mentally regard these as completely different things, because (although they have similar syntactic parts) they are (or should be) used completely in a different way. At any rate, if you're looking for C help, any reference that contains C++ will be of zero use to you. – bitmask Jun 15 '12 at 14:03
  • Stackoverflow.com is a good place to get all information you want. The only way to get information is searching with a C tag. – user957121 Jun 16 '12 at 11:12

4 Answers4

6

http://www.cprogramming.com/

Also that K & R C book is available as a pdf :)

theBigChalk
  • 110
  • 6
  • 2
    This is an awesome list too: http://stackoverflow.com/questions/562303/the-definitive-c-book-guide-and-list – Alex W Jun 15 '12 at 13:32
  • 2
    And if you're doing low-level POSIX stuff on Unix, then the best resource is man pages. – Alex W Jun 15 '12 at 13:34
2

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"

Mike
  • 437
  • 3
  • 8
  • 18
2

I have a good C reference book called C Programming FAQ. I found a similar website that helps tackle most of the common problems.

Joey
  • 344,408
  • 85
  • 689
  • 683
Dror Helper
  • 30,292
  • 15
  • 80
  • 129
2

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.

Spidey
  • 2,508
  • 2
  • 28
  • 38