C Programming Code Examples
C > Beginners Lab Assignments Code Examples
C program to find perimeter of a rectangle
Find Angles of triangle if two angles given -
C Program to input two angles from user and find third angle of the triangle. How to find all angles of a triangle if two angles are given by user using C programming. Sum of angles of
C Program Code to Show some pipe usage -
Pipe creates a pair of file descriptors. Create a child process. Don't need pipe file descriptor. Since we have no input, only output for this process. Closing this file descriptor. Fire up...
Bitwise operators are used in C Language -
C Program Code Bitwise operators During computation, mathematical operations like: addition, subtraction, addition and division are converted to bit-level which makes and
Finds Greater Number of Entered Number -
Program 'takes a number' as input and finds a Greater number of the entered number using same digits. Take a number as input. Reverse the number and store it in the array. Using for
Positional Notation of numbers in C Code -
Enter the number to convert, enter base to which we will convert n, right-hand digit of nprime. Generate digits of converted number right to left. Isolate right-hand digit of n.
C Program to generate nth Fibonacci term -
C Code Declare recursive function to find nth Fibonacci term. Assign a meaningful name to the function, say fibo(). The function accepts an integer hence update function declaration
C Finds Maximum Between Two Numbers -
Finding maximum in general is comparison of two numbers. In C language we compare two quantities using relational operator. We using either > or < operator to compare 2 numbers
C coding Basic binary search tree routines -
Insert, swap, search value, search minimum and search maximum values. Destroy, count tree nodes. Insert a tnode into the binary tree. Traverse the tree to get a pointer to the