# C Programming Code Examples

## C > Pointers Code Examples

### C Program to Perform Stack Operations Using Pointer !

Generating Random Numbers by Multiply -
C++ Program to generate Random Numbers using Multiply with 'Carry' method. multiply-with-carry ("MWC") is a method invented by 'George Marsaglia' for generating sequences

Counts Leading Zeros in a Binary Number -
C program code input any number from user and find total number of leading zeros of the given number. How to find total leading zeros of a given number (in binary representation)

CGI Programs using C++ in Programming -
CGI stands for common gateway interface is set of standards that define how information is exchanged from a 'webserver', passing the web user's request to an application program

Implementing the Bin Packing Algorithm -
This is a sample program to illustrate the Bin-Packing algorithm using next fit heuristics. In the bin packing problem, objects of different volumes must be packed into a finite number

Use Local Variables in The C++ Language -
Global variables are accessible in full file. But "local variables" are not accessible in full file. And the local variable's scope is between the block of instruction that is defined between

Code Toggle or Invert nth Bit of a number -
C program code input any number from user and toggle or invert or flip nth bit of the given number using bitwise operator. Toggling bit means setting a bit in its complement state.

C++ Sample Coding Print Fibonacci Series -
Use the three variable say a, b and c. Place b in a and c in b then place a+b in c to print the value of c to make and print Fibonacci series as shown here in the following C++ program.

Aho-Corasick Algorithm String Matchings -
"Aho-Corasick" string matching algorithm is a 'searching algorithm', it is a kind of dictionary matching Algorithm that locates elements of a finite set of strings (the "Dictionary") within