Monday, January 10, 2011

Linear Search:

What is Linear Search?
                If u read your reference book u will notice that there is a large explanation on LINEAR SEARCH. But Let Me tell u my answer to this question:-
                Linear search means for e.g. that we have to search an element A in array B which contains N no of elements, So what a linear Search do is That it traverse all N element of array B & while traversing it also check whether each element of array B == A & if it is equal then the location is Prompted else we say nothing is found

Program >>>

Saturday, January 8, 2011

BASIC C PROG FOR STRING

#include<stdio.h>
#include<string.h>
#include<conio.h>

void main(){
 char name[50];   // Creates array for storing string

 clrscr();
 printf("Enter your name: ");
 scanf("%s",name);

 printf("\n\nHELLO %s",name);
 getch();
}

/************* OUTPUT ******************/

program by - NINAD
please comment !!!!

//Inline function square, computes the square of x.
#include<iostream.h>#include<conio.h>class
{