String operations (length, compare, copy, concatenate) without including string.h using C

In C, string.h includes various build in functions for string operations. The main operations are1. Length of the string (s ... 2 = find_length(string2); for (i = len1; i Output (adsbygoogle = window.adsbygoogle || []).push({});

Android App Development with MonoDroid using.NET framework in Visual Studio

The craze of smart phones is increasing day by day. Many people in the world use Smart Phones as they are portable, good ... iscuss how to configure MonoDroid in Visual Studio 2010. (adsbygoogle = window.adsbygoogle || []).push({});

Data Structure – Hashing and Hash Table Generation using C/C++

Hashing is the transformation of a string of characters into a usually shorter fixed-length value or key that represents th ... default: cout\nEnter correct option\n"; break; } } return 0; }

Binary Search using C/C++.

The most efficient method of searching a sequential table without the use of auxiliary indices or tables is the binary sear ... mber of key comparisons is approximately logn with base 2. (adsbygoogle = window.adsbygoogle || []).push({});

Data Structure: What is linked list?

Following points illustrates about what is linked list. (adsbygoogle = window.adsbygoogle || []).push({}); It is ... tion of C++ in linked list will be discussed in next post. (adsbygoogle = window.adsbygoogle || []).push({});

Android – Why Google map is not displayed in my application??

There are some reasons due to which a Google map is not displayed in Android Application instead a grey portion with squa ... uses-library android:name="com.google.android.maps" /> (adsbygoogle = window.adsbygoogle || []).push({});

Mini project Digital Volt Meter (DVM) using PIC16F877A with C code

DVM Project Overview Digital Volt Meter is a Mini Project that I made as my project of the subject ‘Microprocessor Based ... A=0xFF; initLCD(); while(1){ valch0=select_adc(0); valch1=select_adc(1); if(valch0

MATLAB and Image Processing

Matlab contains huge resources for image processing. It has Image Processing Toolbox which can be used to process any kind ... ge processing will be published. Stay tuned. (adsbygoogle = window.adsbygoogle || []).push({}); Loading…

Solution of eight queens problem in Prolog

Eight queens problem is a constraint satisfaction problem. The task is to place eight queens in the 64 available squares ... 7, D=1, E=3, F=5, G=2, H=8 A=4, B=7, C=5, D=2, E=6, F=1, G=3, H=8 A=5, B=7, C=2, D=6, E=3, F=1, G=4, H=8 92 Solutions

How to do Multithreading using C/C++

Multithreading is necessary for those programs which need to run two or more processes within a single program simultaneo ... hreading Ends"); return 0; } Output: (adsbygoogle = window.adsbygoogle || []).push({}); Loading…

Data Structure: Implementation of Queue in C++

A queue is an order collection of items from which items may be deleted at one end (called front or head of the queue) and ... break; } } return 0; } (adsbygoogle = window.adsbygoogle || []).push({});

Data Structure: Stack implementation in C++

(A) Top of stack varying method (adsbygoogle = window.adsbygoogle || []).push({}); Algorithm for top of stack var ... break; } } return 0; } (adsbygoogle = window.adsbygoogle || []).push({});

Linked List implementation in C++

Algorithm for adding an element  (data) to the front of the list list. (adsbygoogle = window.adsbygoogle || []).push ... cout\nThe contents of list\n"; while(p!=NULL){ coutinfo p = p->next; }

Stack and Queue Implementation of Linked List in C++

(A) Stack Implementation of Linked list (adsbygoogle = window.adsbygoogle || []).push({}); Algorithm 1. Declare a ... t: cout\nInvalid Input. Try again! \n"; break; } } return 0; }

Analysis of Tower of Hanoi Problem with Algorithm and Source code in C/C++

The Towers of Hanoi is well-known game, played with three poles and a number of different-sized disks. Each disk has a hole ... rom C to L Move disk 2 from C to R Move disk 1 from L to R (adsbygoogle = window.adsbygoogle || []).push({});

Data Structure: Implementing Quick Sort using C/C++

Algorithm (adsbygoogle = window.adsbygoogle || []).push({}); 1. Declare and initialize necessary variables2. Pick ... comparisons and file splits into subfiles of size n/2 and so on . So total number of comparisons is O(n*m) or O(nlogn).

Data Structure: Implementing Bubble Sort using C/C++

In Bubble sort, each pass consists of comparison each element in the file with its successor (i.e. x[i] with x[i+1]) and in ... also (n-1), The total number of comparison are therefore (n-1) * (n-1). Hence the efficiency of bubble sort is O(n^2)

Python Break, Continue and Pass Statements

Python has provided with different loop control statements to control the flow of the loop. (adsbygoogle = window.ad ... idea of pass statement. for i in range(0, 5): pass def sum(a, b): pass class Vehicle: pass Loading…

Data Structure: Implementing Tree Sort in C++

In tree sort, the given data is first converted into a binary tree. The inorder traversal of the binary tree results in the ... ndow.adsbygoogle || []).push({}); How many elements? 5 Insert array of element to sort: 85 53 26 98 77 26 53 77 85 98

Sum of two matrices using two dimensional array in C

Matrix is the perfect example of a two-dimensional array. It has row and column. A row represents one dimension and colum ... zeof(int*) * columns); for (i = 0; i Loading... (adsbygoogle = window.adsbygoogle || []).push({});