C++ Programming Code Examples
C++ > Data Structures Code Examples
Program is designed using doubly linked list and file operations.
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...
How to use Void (void) Data Type in The C -
Void in C means 'nothing' or 'no-value'. This is used either with pointer declarations or with function declarations. And declares function which takes no arguments but returns an...
Code Removes First Occurrence of a Word -
C program to 'input any string' from user and remove first occurrence of a given word from string. Logic to remove 'first occurrence' of a word. Input string from user, store it in some
C++ Code Matrix Multiplication 2D Arrays -
Matrix addition is the "operation of adding" 2 matrices by adding the corresponding entries together. 2 dimensional array, represented in the form of "rows and columns", also suitable
Convert Decimal to Octal Number System -
C Program Code input decimal number and convert to octal number system. Decimal number system is a base 10 number system. Decimal number system uses 10 symbols to
C Command Line arguments parameters -
C code to Open command prompt inside Borland C/C++. Click on DOS Shell. Inside command prompt type this command. Type "exit" command to return to Turbo C/C++
C++ Code Find ASCII Value of a Character -
Full form of Ascii is American Standard Code for Information Interchange. It is a character "Encoding Scheme". Originally based on the English alphabet, every character or number
Display the contents of structure elements -
C Program code to use structure within union & display the contents of structure elements. Problem statement: Create one structure and declare it inside union. Then accept values for