We've gathered cheat sheets for fast reference to C-related information. You'll find information about C, structured programming, object-oriented programming and more. Do you have a favorite C cheat sheet? Let us know!
C Quick Reference Sheet (PDF) - This guide offers an introduction to the C programming language. C Reference Card - ANSI (PDF) - This fast reference card includes functions, data types, pointers, arrays and standard libraries, among other essential knowledge.
C is a general purpose multi-paradigm programming language. It is an extension of the C language and as such most C code can easily be made to compile in C. Some of the major additions to C include object-orientated programming, operator overloading, multiple inheritance and exception handling. C QUICK REFERENCE PREPROCESSOR // Comment to end of line /. Multi-line comment./ #include // Insert standard header file.
Specifically, this manual aims to document: The 1989 ANSI C standard, commonly known as “C89” The 1999 ISO C standard, commonly known as “C99”, to the extent that C99 is implemented by GCC The current state of GNU extensions to standard C This manual describes C89 as its baseline. Strcat(s1,s2)strchr(c strcmp(s2,s1)strlen( strncpy(n strstr(s1,s2) Functions In C, functions must be prototyped before the main function, and defined after the main function. In C, functions may, but do not need to be, prototyped. C functions must be defined before the location where they are called from. // function declaration type name. Convert to upper case? Toupper(c) String Operations s, tarestrings, csct constan strings length of s strlen(s) copy ctto s strcpy(s,ct) up to nchars strncpy(s,ct,n) concatenate ctafter s strcat(s,ct) up to nchars strncat(s,ct,n) compare csto ct strcmp(cs,ct) only rst.
Need more background information before you get started? See our definitions for C, C++, C# and VB.NET.
C Cheat Sheets
C
- C Quick Reference Sheet (PDF) -- This guide offers an introduction to the C programming language.
- C Reference Card - ANSI (PDF) -- This fast reference card includes functions, data types, pointers, arrays and standard libraries, among other essential knowledge.
C# and VB.NET
- Core C# and .NET Quick Reference (PDF) -- This two-page guide lists the basics for C and .NET programming.
- C# and VB.NET Comparison (PDF) -- This cheat sheets lists the most important syntactical differences between C# and Visual Basic .NET.
- Casting in VB.NET and C# -- This reference lists operations related to casting and type in C# and VB.NET.
- String Formatting in C# -- This quick reference to .NET string formatting using the String.Format() function also includes a FAQ.
C++
- C++ Containers -- This cheat sheet covers information related to containers in C++.
- C++ Language Summary -- This introductory reference covers the basic concepts in C++ programming.
- STL Quick Reference Card (PDF) -- This eight-page guide takes you from notations through to functions and iterators.
We've got lots more!
Check out the full collection of Our Favorite Cheat Sheets for fast help on a wide range of subjects. You'll find cheat sheets for other programming languages, blogging, browser shortcuts, and search engine optimization as well as a wide variety of other subjects.
C Programming Quick Reference Pdf
For more in-depth information, see our our collection of learning guides. Then test your knowledge with all our quizzes.