C Program to reverse the first n characters in a file.

C Program to reverse the first n characters in a file using the command line arguments. Here we read the file name and n are specified on the command line. If file exists, it reverse the n characters, else it gives the error message. Read more about C Programming Language . /************************************************************ You can use …

C Program to perform complex numbers operations using structure.

C Program to perform complex numbers operations using structure. Complex numbers are numbers which contains two parts, real part and imaginary part. Complex numbers are written as a+ib, a is the real part and b is the imaginary part. We used the structure in C to define the real part and imaginary part of the …

C Program to Demonstrate global and internal variables.

C Program to Demonstrate global and internal variables.When variable declared outside the all the blocks, they are called global variables, and they are initialized by the system. Variables declared within the functions are called as internal variables, the are locale to that function, and user only initialize the variable. Read more about C Programming Language …

C Program to find second largest and second smallest element in an array

Arrays in C, C Program to find second largest and second smallest element in the array.  Program will accept a list of data items and find the second largest and second smallest elements in it. And also compute the average of both. And search for the average value whether it is present in the array …

C Program To Find The Sum & Average

C Program to Find Sum and Average of an Array This program reads N integers (positive, negative, and zero) into an array and computes three values: the sum of negatives, the sum of positives, and the average of all elements. Algorithm Read N (array size) from the user. Read N integers into the array one …

C Program To Find The Roots Of Quadratic Equation

C program to To Find The Roots Of Quadratic Equation using if else statement…Quadratic equation is the second degree equation of only one variable, which is in the form of ax^2+bx+c, where a, b, c are the constants. Here in this program, we use the simple if-else statement to fin the roots of the quadratic …