# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### Increment and decrement operators

C++ Codes Check a Number is Palindrome -
C++ sample ask to enter a number to reverse it, then check whether reverse is equal to its "original or not", if "it is equal" then it will be palindrome else it will be not be palindrome:

Constant Definition by use const Keyword -
What are "Constants"? Constants refer to as fixed values, unlike variables whose value can be altered, constants -- as the name implies does not change, they remain constant. And

C Add Two Numbers using Command Line -
Write a C Program. Open 'command prompt' inside Borland C/C++ and Click on DOS Shell. Inside command prompt type this command. Type "exit" command to return to C++ Screen

Find Sum of Natural numbers from 1 to N -
Program find the sum of all natural numbers between 1 to n. Input upper limit to find sum of natural numbers. Store it in some variable say N. Initialize another variable to store sum

Program to Display Odd numbers without -
C Program to print odd numbers from 1 to n without if statement. The above approach is not optimal approach to print odd numbers. Observe the above program for a while. You

Code Shows a Client Server in C language -
Message queue program that shows a client server implementation this is the reciever program using Message Queues. Let us set up the message queue. Then the messages...

Program to Find Inverse of a Graph Matrix -
C++ code displays the Gauss Jordan method of computing inverse of a matrix. it proceeds with row by row "reduction of matrix" to unit matrix column-wise. First enter the order of

Program Structure in The C Programming -
Create a structure. The name of the structure is StudentData. The Student is the variable of structure StudentData. Assigning the values of each struct member here. Displaying the...