# C Programming Code Examples

## C > C on Unix Code Examples

### This is the sender program using Message Queues

C Check a Number is Divisible by 5 and 13 -
Check whether a number is divisible by 5 and 13 or not using if else. A number is divisible by some other number if it gives 0 as remainder. To check if a number is exactly divisible by a...

C Code Merge & Sort Elements of 2 Arrays -
We have to sort only when left<right because when left=right it is anyhow sorted. Sort the left part. Sort the right part. Merge the two sorted parts. Merge functions merges the...

C++ language Simple Stack using Pointers -
A 'stack' is a basic "data structure" and can be defined in an 'Abstract', implementation-free manner, or it can be "Generally Defined" as a Linear List of items in which all additions and

Get Lowest order or first set bit of number -
C Program Lowest order or first set bit of any number is the first bit set starting from left to right. Lowest order set bit of any odd number is 0 since first bit of any odd number is always

Convert Octal to Decimal Number System -
Program to input Octal number and convert to Decimal number. Octal number system is a base 8 number system. Octal number system uses 8 symbols to represent all its numbers...

Find Intersection & Union of 2 Linked Lists -
This C Program code finds the intersection & union of 2 Linked lists. Intersection is a set of elements that are common in both lists while union is a set of all Unique Elements in both...

Generate a Sequence of N Characters for a -
This algorithm takes the input of the 'specific' sequence. It generates random Subsequence from the given character string. A function to generate 'random' sequence of a given length

C++ Matrix Addition Operation of Adding -
Two dimensional array in C++, represented in the form of rows and columns, also suitable with matrix. For multi dimensional array, the element with indices i,j would have "address"