C Programming Code Examples
C > Functions Code Examples
C program to find prime numbers in given range using functions
Code Get Highest Order Set Bit of Number -
Highest position of a set bit from left to right in a number is said to be highest order set bit of that number. Highest order set bit of any negative integers is 31. Since, highest order...
C Code Increment & Decrement Operators -
C programming language has two operators increment ++ and decrement -- to change the value of an operand (constant or variable) by 1. Increment ++ increases value by 1 whereas
Accessing SQL Server from C++ Language -
Forward declarations of the error handler and message handler. The Connection with "SQL" Server. Install user-supplied error functions & message-handling functions. Get DBProcess
C Program Codes Parse Custom httpd Log -
C Parse custom httpd log. Get unresponsibly wild with pointers. Grow a tree for world peace. Allocate mem for ptr array. Read btree into array. Qsort the array. Print the result.
C Add Two Numbers using Command Line -
Write a C Program. Open 'command prompt' inside Borland C/C++ and Click on DOS Shell. Inside command prompt type this command. Type "exit" command to return to C++ Screen
Code to Self Balancing Binary Search Tree -
Make the "Tree Logically" empty, insert data and get "height of node". Function to max of left/right node, insert data recursively. Rotate binary tree node with left child. Rotate binary
C Read and Write Strings gets() and puts() -
String is an 'Array of characters'. In this guide, we learn how to declare strings, how to work with strings in C language and how to use the 'pre-defined' string handling functions. String
C++ Language List of Reserved Keywords -
Any "Programming Language" has a "list" of keywords. C++ Keywords are list of reserved words for this Programming Language. Each keyword has a special meaning and it can not