# C Programming Code Examples

## C > File Operations Code Examples

### A Simple C Program to open, read and close the file

C Code print all negative elements in array -
Write a C program to input elements in array and print all negative elements. Display all negative elements in array using loop in C. Displaying negative, positive, prime, even...

How to pass an entire array to a function -
Pointer var1 is pointing to the first element of the array and the var2 is the size of the array. In the loop we are incrementing pointer so that it points to the next element of the array

C Program code to Multiply two Matrices -
Read elements in two matrices and multiply them. Matrix multiplication program in C. How to multiply matrices in C programming. Input elements in first matrix from user and...

C Program to Add two Complex Numbers -
This C Program adds two complex numbers. A Complex Number is a number that can be put in the form a + bi, where a and b are real numbers & i is called imaginary unit, where...

Convert Octal to Decimal Number System -
Program to input Octal number and convert to Decimal number. Octal number system is a base 8 number system. Octal number system uses 8 symbols to represent all its numbers...

Program to Converts Celsius to Fahrenheit -
Fahrenheit & Celsius are two unit for measure temperature. Formula to convert "Celsius" to Fahrenheit using this formula you can change temperature fahrenheit to celsius. Use temp

C Codes Pointer to Pointer Double Pointer -
In C, A "Pointer" holds the Address of another variable of same type. When a Pointer Holds the address of another pointer then such type of pointer is known as "pointer-to-pointer" or

C programming Scanf() Format Specifiers -
Read a floating-point value, read a single character, read a decimal integer, read an integer in either decimal, octal, hexadecimal format, read a floating-point number, read a