C Programming Code Examples
C > File Operations Code Examples
Create Employee File Name Record that is taken from the Command-Line Argument
Find Reverse of String by strrev() Function -
C program code find Reverse of a given string using Loop. There are numerous ways to find reverse of a string. Input the string from user, store it in a variable say "str". Declare another
Program Solves the Magic Squares Puzzle -
Using iteration, finds the Magic Square for a given odd sized number. A magic square is an arrangement of numbers from 1 to N^2 in an [N x N] matrix, with each number occurring...
Swaps Array Elements and Reverse Arrays -
Program declare an integer array of size five, initialize it using for loop. Pass size and array name to function. Function uses for loop and "swap array elements" with in it. A for loop is
If Else Check Given Integer is Odd or Even -
The if...else statement executes some code if the test expression is true (nonzero) & some other code if the test expression is false (0). If test expression is true, codes inside the body
C Sort Structures on the basis of Structure -
Using cricket, declare an array player with 10 elements and write a c program to read the information about all the 10 players and print a team wise list containing names of players
Enters The Value of N & Then Ask to Enter -
Following C++ program first ask to the user to enter the value of n and then ask to enter the n Number to add them. This program add all n numbers entered. To add n numbers in C++
C Coding Replace Lowercase to Uppercase -
Accepts the sentence and replaces lowercase characters by uppercase and vice-versa. Take an an English sentence as input and store it in the array "sentence[]". Copy the Last Letter's
Count total number of Negative Elements -
C program to read elements in an array and count total number of negative elements in array. Program to find all negative elements in an array. Logic to count total negative and