Multiplication of Matrices

A program to find the multiplication of the given matrices [sourcecode=c]/******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided...

Linear searches.

Read an integer array and then do linear searches. C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made available as a service to our * * visitors and is provided strictly for the * *...

Simple operations with arrays

The following C programming code performs simple operations on arrays. It initializes an array by two different ways and prints out the result of the array initialization. C /******************************************************* * MYCPLUS Sample Code -...

C Implementation of Various Sorting Algorithms

This is a simple C implementation of various sorting algorithms such as Bubble Sort, Insertion Sort, Selection Sort and Shell Sort.   Bubble Sort Bubble sort, is a simple comparison-based sorting algorithm that repeatedly steps through the list, compares adjacent...

C Program to compare two integer arrays

This C program compares two distinct arrays and if the arrays are same then content results in FALSE. The behavior of comparison is explained when we note that the comparison is a comparison of addresses, not contents. C #include < stdio.h > int main(void) { int...

The use of streams with files

The use of streams with files. This programme copy the input file to another file and also print its contents to the IO Stream. C /******************************************************* * MYCPLUS Sample Code - https://www.mycplus.com * * * * This code is made...

Read/writing/reversing integer arrays

The simple program Reads and traverse, write arrays and reverse the elements in an integer array. [sourcecode language=’cpp’] /******************************************************* * MYCPLUS Sample Code – https://www.mycplus.com * * * * This code...

Finding the Prime number in C

A prime number is a number greater than 1 that cannot be formed by multiplying two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number.

Reading Text Files

It contains a program that is given as command parameter the name of a text file, say, temp.dat. It will read each line of temp.dat and print out in correspondence the number of characters and words on that line. At the end it will print out the number of lines that...

C Program to Add Sequence of Numbers

This C program reads a sequence of positive integers as input by the user and print their sum. The program keeps on taking the input from user until user enters number ( 0 ) and program calculates the sum of all input numbers. Finally this C program prints the sum of all the numbers on screen and terminates.

Fly away to your vacation

The object of the game is to get to your proper plane on time so you can fly away to your vacation. Of course there a few obstacles and problems along the way and they will be brought up at the appropriate time. It will be up to you to solve the puzzles associated...