C Programming Code Examples
C > Gnu-Linux Code Examples
Show,access enviroment var's
C++ Find Closest Pair of Points in an Array -
Sort array of points according to X coordinate and Y coordinate. Find the distance between two points. And return the 'smallest distance' between 2 points. Find the 'distance' beween
Checks If the Substring is Present in String -
C Program 'checks the substring' is present in a given string. Program accepts both string & substring. Then checks whether the substring is present in the string. Enter search substring
C Convert Binary to Octal Number System -
In C program user is asked to enter the binary number and the program then converts that binary number to the octal number by calling a user defined function. To understand this...
C++ Language & Monoalphabetic Cypher -
A substitution cipher is a method of encoding by which units of 'plaintext are replaced' with ciphertext, according to a regular system; the "units" may be "single letters", pairs of letters
C Codes Surface Area & Volume of a Cube -
The formula used to find the surface area and volume of the cube is surface_area = 6 * (a*a) and volume = a*a*a. Library Function is used in header file to compute Math Functions. We
Sizeof Operator & Coma Operator In C++ -
In C++ Language 'sizeof' operator returns the size of the variable or type. Here 'size' means how many bytes of memory is being used by a variable or type. Coma "," Operator is used
Check Whether Number is Strong Number -
How to check Strong Numbers using loop in C. What is Strong number? Strong number is a special number whose sum of factorial of digits is equal to the original number. 145 is
Code Sum of two One-Dimensional Arrays -
Computes the sum of two one-dimensional arrays using malloc. The program allocates 2 one-dimentional arrays using malloc() call and then does the addition and stores the...