0% found this document useful (0 votes)
8 views17 pages

DS Module 1 Opc

Ds

Uploaded by

msklgx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views17 pages

DS Module 1 Opc

Ds

Uploaded by

msklgx
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Data type Vs Data Structure

Advantages of Data structure

1) Allows easier processing of data.


2) It allows information stored on disk very efficiently.
3) These are necessary for designing an efficient algorithm.
4) It provides management of databases like indexing with
the help of hash tables and arrays.
5) We can access data anytime and anywhere.
6) It is secure way of storage of data.
7) Graphs models real life problems
8) It allows processing of data on software system
STRING
Introduction to string
 Strings are actually one-dimensional array of characters
terminated by a null character '\0'.

 following declaration and initialization create a string


consisting of the word "Hello“

char greeting[6] = {'H', 'e', 'l', 'l', 'o', '\0'};

OR

char greeting [ ] = "Hello";


Output:
Greeting message: Hello
Pattern Matching Algorithm

You might also like