C Programming Code Examples
C > Arrays and Matrices Code Examples
Program to Merge and Sort Elements of 2 different arrays
Program Code Copy String by While Loop -
C program 'Copy one string to another' string using 'While loop'. Logic to copy one string to another string. Copy 'text1 to text2' character by character. Input a string from user, store it
C Code Print ASCII values of all Characters -
Program print ASCII values of all characters. ASCII stands for American Standard Code for Information Interchange. It is a set of integer values that represents different printable and
Code Implement various Queue Functions -
C programming code to ask the user for the operations like insert, delete, display etc. According to the entered option access the respective functions. Use switch statement
Learn Bitwise Operators in C++ Language -
in C++, "bitwise operators" are similar to the Logic operators, but they perform the same logical operations on bits. All data in memory is represented in the "binary form". Variables
Checks a Character is Vowel or Consonant -
The five alphabets 'A, E, I, O and U' are called 'vowels'. All other alphabets except these five vowel letters are called consonants. Program above assumes that the user always enters an
Program to calculate Average of array in C -
This C program should give an insight of how to parse (read) array. We shall use a loop and Sum up all Values of the array. Then we shall divide the sum with the number of elements
Find the Size of int, float, double and char -
In this c program, we are using the sizeof() operator to find the size of data types. When the sizeof is used with the primitive data types such as int, float, double and char then
Calculates Area & Circumference of Circle -
To calculate "area and circumference" of any circle in "C++", you have to ask to the user to enter the radius of circle, place the radius in a variable say r and make two variable, one for