Php Programming Code Examples
Php > Algorithms Code Examples
C Store Information Name Roll and Marks -
In this c program code, a structure, student is created. This structure has three members: name (string), roll (integer) and marks (float). Then, a structure variable s is created to store
Code Sum of Prime numbers between 1- n -
C program to find sum of all prime numbers between 1 to n using for loop. Prime numbers are positive integers greater than 1 that has only two divisors 1 and the number itself. For
Demonstrates Printf Inside Another Printf -
Firstly Inner printf is executed which results in printing 1324. Printf returns 'Total Number' of Digits:4 & second inner printf will looks like. It prints 4 & Returns the Total Number of digits
C coding Basic binary search tree routines -
Insert, swap, search value, search minimum and search maximum values. Destroy, count tree nodes. Insert a tnode into the binary tree. Traverse the tree to get a pointer to the
C Code to Find & Replace any desired char -
C Program to find and replace any desired character from the input text. Function to find and replace any text. Enter a line of text below. Line will be terminated by pressing...
Program Code Display Fibonacci Sequence -
The Fibonacci Sequence is a series where the next term is the sum of pervious 2 terms. The first two terms of the Fibonacci sequence is 0 followed by 1. The sequence: 0, 1, 1, 2, 3, 5, 8,
C Program setlocale Set Local Information -
C programming code to set local information. Refers to all localization categories. Affects the operation of the strcoll() function. Alters the way the character functions work and...
C++ Matrix Addition Operation of Adding -
Two dimensional array in C++, represented in the form of rows and columns, also suitable with matrix. For multi dimensional array, the element with indices i,j would have "address"