# C Programming Code Examples

## C > Pointers Code Examples

### Program to Find Length of the String using Pointer

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

C Language & CPU Scheduling Algorithm -
C Program Checks if the mouse pointer is over the button. Checks whether count=1 so as to display the button on the new position for only once. Creates a box and the box is...

Display the product of two float numbers -
In this c program, user is asked to enter two float numbers and the program stores the entered values into the variable j1 and j2. C program then multiplies entered numbers...

Program Code to Implement CockTail Sort -
C Program implements cocktail sort. Cocktail sort is a variation of bubble sort that is both a stable sorting algorithm & a comparison sort. The algorithm differs from a "Bubble Sort" in

Check the Number can be Express as Sum -
Check if an integer can be 'expressed' as the "sum of two Prime Numbers" of all possible combinations with the use of functions. This program takes a positive integer and checks

Program to Check Whether Graph is DAG -
This is a C++ Program code to check whether graph is DAG. In mathematics and computer science, a directed acyclic graph, is a directed graph with no directed cycles. It is formed by

Read Two Integers and Swap their Values -
C language program coding to take the two integers as input and store it in the variables m & n respectively. Call function swap. Pass addresses of variables to the function swap.

C Language Codes Find Length of a String -
How to find 'Length of a string' without using in-built library function strlen() in C language. Effective way to find length of string without using strlen() function. In the C every string is