# C Programming Code Examples

## C > Arrays and Matrices Code Examples

### C Program to Read an Array and Search for an Element

Printing ASCII Values of Characters in C++ -
Placing the number in the ch variable of char type to convert the ASCII value in equivalent character to print all the ASCII values of the characters as shown here in the c++ program

C++ Computes Discrete Fourier Transform -
This is a C++ Program to perform Fast Fourier Transform. A 'Fast Fourier transform' (FFT) is an algorithm to compute the discrete Fourier transform (DFT) & its inverse. Fourier analysis

C Programming to Multiply Two Matrices -
C Code to Multiply Two Matrices. How many rows in the first matrix? How many cols in the first matrix? How many rows in the second matrix? How many cols in the second matrix?

Program to find Maximum using var-args -
Here, I will embed the logic to find maximum within a function. Lets define function to find maximum. 1 - give a meaningful name to our function. Say "max()" function is used to find

C++ Program Finds Factorial of A Number -
The factorial of a positive integer n is equal to 1*2*3*...n. In program, user enters a positive integer. Then the "factorial" of that number is "computed and displayed" in the screen. Here

Program Code Convert Decimal to Binary -
To convert the Decimal Number into Binary, Check First MSB bit of number, if it is 1 then display '1' otherwise display '0'. C Language program is just to know the size of integer...

C Language Coding Print Alphabets a to z -
Internally C represent every character using ASCII character code. ASCII is a fixed integer value for each global printable, non-printable characters. For example ASCII value of a=97,

C Returns a Pointer to the first occurrence -
C programming code sample about returns a pointer to the first occurrence of str2 in str1 or a null pointer if there str2 is not part of str1. It returns a null pointer if no match is...