Tricky Tricks
››
Programming Tricks
›› C Languages Tricks
C Languages Tricks
Following are the C Languages Tricks links. Please follow the links to know more about some specific trick.
#Ifdef Out
Avoiding Duplicate Declarations
C Syntax Hacks
Calculating Length Of An Array
Cin.Getline() Can Run Into Problems
Delimited Files Can Easily Be Read Using A While Loop And Getline
Equivalency Tests
Getline() May Be Used Exactly As Stdcin Is Used
Getline Can Be Told To Stop Grabbing Input At Any Designated Character
Goto
Header Files To Include When Using C++ Io
How To Prepare The Output Stream To Print Fixed Precision Numbers
Leading Whitespace (Carriage Returns, Tabs, Spaces) Is Ignored By Cin
More On Preprocessor Macros
Pointers To Functions
Quick Commenting
Quick Debugging Statements
Quick Man Lookup In Vim Or Emacs
Reading In Numbers Directly Is Problematic
Sizeof Revisited
Sizeof
Sorting Strings With Qsort()
To Detect A Null Pointer Error In Turboc 2 And Turbo C++ 3
To Swap Between 2 Variable Without Using Third Variable
Using C++ Style Strings
Using Getline To Input Numbers
When Reading An Entire File, Embed The File Input Inside Of The Loop Condition
Partners