C Program To Swap Two Variables

C Program To Swap Two Variables without using the third variable. This type of C programs are asked in various Interviews.There are various methods to achieve this one. For example, a=a+b;b=a-b;a=a-b;Here we use the XOR(^) operator to Swap Two Variables without using the third variable. Read more about C Programming Language . /************************************************************ You can …

C Program to concatenate two strings

C Strings: Write a function to concatenate two strings, write a program to read three Strings and use the function to concatenate them and print it. String concatenation is the process of combining two or more strings to a single String. Here, we write the function for string concatenation, and passing the three strings to …

C Program to find the squares and cubes of a two digit odd number.

C Program to find the squares and cubes of a two digit odd number. In this Program, we check the number is odd and a two digit number, then calculates its square and cube. Read more about C Programming Language . Read more Similar C Programs Searching in C C Strings You can easily select …

C Program to evaluate the following series. f(x)=x-x3/3! + x5/5!-x7/7!…..into given numbers of terms.

C program to evaluate the following series. f(x)=x-x3/3! + x5/5!-x7/7!………………….into given numbers of terms. Series is a ordered set of elements combined together by additional operator. Finite series contains number of defined elements, and infinite series contains infinite elements. Read more about C Programming Language . Read more Similar C ProgramsSearching in CC Strings You …

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 …

C Program to accept two integers for a co-ordinate point and determine its Quadrant.

C program to accept two integers for a co-ordinate point and determine its Quadrant. A Cartesian coordinate system specifies each point uniquely in a plane by a pair of numerical coordinates, which are the signed distances from the point to two fixed perpendicular directed lines, measured in the same unit of length. The left to …

C Program to find whether the given character is Vowel or Consonant

C Program to find whether the given character is Vowel or Consonant. Here, we use the simple if-else statement to check the particular character is Vowel or Consonant. Read more about C Programming Language .   Read more Similar C Programs C Strings Data Structures C Sorting You can easily select the code by double …

C Program for simple calculator, using switch statement

C program to simulate a simple calculator using switch statement.  The calculator should be able to perform basic arithmetic operations like addition, subtraction, multiplication, and division only on integers. Error message should be reported, if any attempt is made to divide by zero. (Using switch statement) . Read more about C Programming Language . Read …

C Program To Sort An Array Using Bubble Sort

C Program To Sort An Array Using Bubble Sort. Bubble Sort is the simplest and easiest sorting technique. In this technique, the two successive items A[i] and A[i+1] are exchanged whenever A[i]>=A[i+1]. The larger values sink to the bottom of the array and hence it is called sinking sort. The end of each pass smaller …

Binary search in C

C Program to implement Binary search. Binary search technique is simple searching technique which can be applied if the items to be compared are either in ascending order or descending order. The general idea used in binary search is similar to the way we search for the telephone number of a person in the telephone …