C Programming Code Examples
C > Beginners Lab Assignments Code Examples
multiple if statements in C programming language
Program Input and Print elements in array -
C coding to input elements in array and print array. How to input and display elements in an array using for loop in C programming. How to input and display array elements in
C++ Programs Use Above Below Primitive -
Program to check whether two lines intersect to each other. The above-below primitive can be used to test whether a line intersects a line segment. It does iff one endpoint of segment
Program Code Calculates the Value of nCr -
This C Program to Calculates the value of nCr. The algorithm used in this program is nCr = n! /((n-r)!r!) and We need to Find all the Possible combination of the value n&r. A combination
Program Count No of Lines & Blank Lines -
Open the file and point it to the file pointer fpoint1. Initialize the variables line_count, n_o_c_l, n_o_n_b_l, n_o_b_l, n_e_c to zero. Using while loop read the next line character
Program code Find Quotient & Remainder -
User is asked to enter the Dividend & Divisor and the program then finds the quotient and remainder based on the input values and the modulus operator "%" returns the remainder
C Program to find Transpose of a Matrix -
C program to read elements in a matrix and find transpose of the given matrix. How to find transpose of a given matrix in C. Input elements in matrix A from user. Declare...
Create an inline Function in C++ language -
When one 'function calls another', the calling function must "Send a Request" to the called function that would process it and return the necessary value, if any. C++ Language allows
Codes Binary Number to Decimal Number -
Takes the binary number (entered by user) as input and converts it into a decimal number using function. To understand this program, you should be familiar with the following C...