Beruflich Dokumente
Kultur Dokumente
An array is a collection of data items, all of the same type, accessed using a
common name. A one-dimensional array is like a list; A two dimensional array is
like a table; The C language places no limits on the number of dimensions in an
array, though specific implementations may.
A union is a special data type available in C that allows to store different data types
in the same memory location. You can define a union with many members, but
only one member can contain a value at any given time.
In a circularly linked list, all nodes are linked in a continuous circle, without using
null. For lists with a front and a back (such as a queue), one stores a reference to
the last node in the list. The next node after the last node is the first node. ...
Circularly linked lists can be either singly or doubly linked.
Extendible hashing is a type of hash system which treats a hash as a bit string,
and uses a trie for bucket lookup. Because of the hierarchical nature of the system,
re-hashing is an incremental operation (done one bucket at a time, as needed). This
means that time-sensitive applications are less affected by table growth than by
standard full-table rehashes.
In internal sorting all the data to sort is stored in memory at all times while
sorting is in progress. In external sorting data is stored outside memory (like on
disk) and only loaded into memory in small chunks. External sorting is usually
applied in cases when data can't fit into memory entirely.
Internal Sorting takes place in the main memory of a computer. The internal sorting
methods are applied to small collection of data
Conditional statements
1. if statement
2. if-else statement
3. ternary statement or ternary operator
4. nested if-else statement
5. switch statement
Control statements
while loop
do...while loop
for loop
merits of functions
Modular and Structural Programming can be done
1. We can divide c program in smaller modules.
2. Modular programming makes C program more readable.
3. Modules once created , can be re-used in other programs.
fread() function
The fread() function is used to read bytes form the file.