C Programming Code Examples
C > Beginners Lab Assignments Code Examples
Program Code - Investigating the family
Types of Loops in The C++ Programming -
While Loop: While a given Expression is true it "Repeats the Statement" in the loop body. Before executing the Loop Body it tests the condition for True or False. Do...While Loop:
C++ Programs Performing Uniform Binary -
Implement to binary search on a sorted array. For the mid index value of any of a 'Subarray', instead of calculating refer Lookup Table. It is an improvement in 'Binary Search' since table
C Swapping Two Numbers Using Variable -
C programmers are required to swap values of two variables. Here, we shall learn how to swap values of 2 integer variables, that may lead to swapping of values of any type and...
C Coding Replace Lowercase to Uppercase -
Accepts the sentence and replaces lowercase characters by uppercase and vice-versa. Take an an English sentence as input and store it in the array "sentence[]". Copy the Last Letter's
Illustrate Stack Operations using MACROS -
C Language Use #define function to define the macros. Define separate functions for the operations like push, pop, display etc. Use switch statement to access these functions.
Relational Operators in C++ programming -
In C++, This category of the operators is used to compare different values. The result of the operation is a Boolean value. The "Relational" operators are used in the form Operand1 and
C++ Check a Character is Alphabet or Not -
To check whether the entered character is an alphabet or not alphabet in the 'C++', enter a character and start checking for alphabet. To check for alphabet, use 'ASCII' of character, if
Fisher-Yates Algorithm & Array Shufflings -
Program to "shuffle array" using Fisher-Yates algorithm. This algorithm for "generating" a 'Random Permutation' of a finite set-in plain terms, for randomly shuffling the set. Variant