Friday 21 October 2016

DATA STRUCTURE(D S)-transverse of linear Array

CODINGCLASSES|LEARNTOPROGRAM


Example of transverse of linear Array in data structure(DS)




E.G


#include<iostream.h>
#include<conio.h>
void main()
{
int i,n;
int l[20];
cout<<"Enter the size of an array ";
cin>>n;
cout<<" Enter the element of an given array";
for(i=0; i<=n; i++)
{
cin>>l[i];
}
getch();
}


o/p:-Enter the size = 5
Enter the elements
2,3,4,5,6

INTHIS EXAMPLE NO ANY COMPLIE TIME OR RUN TIME ERROR IT IS ALREADY CHECKED IN TURBO C++ IDE IF YOU HAVE ANY DOUT THEN PLZ COMMNET BELOW AND SEND YOUR FEED BACK THROUGH COMMNET

KEEP  VISITING FOR LATEST UPDATES !!

keep coding!!

No comments:

Post a Comment