Php Programming Code Examples
Php > Code Snippets Code Examples
Bubblesort routine
How to use Variable Types The C language -
In Programming a Variable is a place holder for some value. All variables have some type associated with them, which expresses what 'type' of values they can be assigned. C offers
C Store Information Using Structures with -
C Programming example Store information using structures with dynamically memory allocation. This c program asks user to store the value of noOfRecords and allocates the
Program calculate & print the value of nCr -
In the following C program we are calculating & displaying the value of nCr. nCr can also be represented as C(n,r). C Language function is used to find the factorial of given number and
C Programs Calculates the Value of sin(x) -
C Program Coding to Calculates the Value of sin(x). It's a non-differentiable function. Start at zero, then goes up to 1, then back down to 0. But then, instead of Going Negative, it will
Decimal equivalent of input Hexadecimal -
Program to display the decimal equivalent of an input hexadecimal number (Hexadecimal to Decimal). How many digits in input? Digits of your i/p no. must not exceed entered limit
C++ Implement Shortest Path Algorithm -
For a general weighted graph, we calculate single source shortest distances in "O(VE)" time using 'Bellman-Ford Algorithm'. For a graph with no negative weights, we can do
C Codes Size of Structure Sizeof Operator -
C structure is collection of elements of the different data types. Size of the structure can be evaluated using "sizeof operator". Sizeof is operator not function. Sizeof operator takes
C Programming Uses For Loop Statements -
For Loop in C. First initialization happens and the counter variable gets initialized. Second step the condition is checked, where counter variable is tested for the given condition, if...