Popular posts from this blog
C Program | Convert lower case to upper case
C Language | Loops | Start your journey with C | Part 4
WHAT IS LOOP : Loops are used to execute a piece of code several time according to the condition give to the loop. It means it execute same code multiple times so it saves code and also helps to traverse the elements of array. There are three types of loops in C language. They are : FOR loop. WHILE loop. DO WHILE loop. 1. FOR loop : Syntax : for(initialization;condition;increment/decrement) { ..... ...... ...... ...... // CODES ..... ..... ..... } Here is an example how FOR loop works : #include<stdio.h> void main() { for(int i=1;i<=10;i++) { printf("\n %d",i); } } Output : 2. WHILE loop : Syntax : while(condition) { ...... ...... ...... //code ...... ..... } Here is an example how WHILE loop works : #include<stdio.h> void main() { int i=1; while(i<=10) { printf...

Data structure is a particular way of storing and organizing information in a computer so that it can be retrieved and used most productively.
ReplyDeleteDifferent kinds of data structures are meant for different kinds of applications, and some are highly specialized to specific tasks.
Data structures are important for the following reasons:
1. Data structures are used in almost every program or software system.
2. Specific data structures are essential ingredients of many efficient algorithms, and make possible the management of huge amounts of data, such as large integrated collection of databases.
3. Some programming languages emphasize data structures, rather than algorithms, as the key organizing factor in software design.