Skip to main content

Recently Updated Pages

9. Common Errors and Debugging

Alprog - Elektro KKI Module 6 : Linked List

9.1 Memory Leaks Problem: void createList() { struct Node *head = (struct Node*)malloc(sizeof...

Updated 2 months ago by DS

8. Practical Applications

Alprog - Elektro KKI Module 6 : Linked List

8.1 Polynomial Addition #include <stdio.h> #include <stdlib.h> // Node for polynomial term struc...

Updated 2 months ago by DS

7. Advanced Linked List Operations

Alprog - Elektro KKI Module 6 : Linked List

7.1 Reverse a Singly Linked List Method 1: Iterative void reverseList(struct Node **head) { s...

Updated 2 months ago by DS

6. Circular Linked List

Alprog - Elektro KKI Module 6 : Linked List

6.1 Structure In a circular linked list, the last node points back to the first node (or head). s...

Updated 2 months ago by DS

5. Doubly Linked List

Alprog - Elektro KKI Module 6 : Linked List

5.1 Node Structure struct DNode { int data; struct DNode *prev; // Pointer to previous n...

Updated 2 months ago by DS

4. Complete Singly Linked List Example

Alprog - Elektro KKI Module 6 : Linked List

#include <stdio.h> #include <stdlib.h> // Node structure struct Node { int data; struct ...

Updated 2 months ago by DS

3. Singly Linked List Operations

Alprog - Elektro KKI Module 6 : Linked List

3.1 Creating an Empty List #include <stdio.h> #include <stdlib.h> struct Node { int data; ...

Updated 2 months ago by DS

2. Node Structure

Alprog - Elektro KKI Module 6 : Linked List

2.1 Defining a Node In C, a node is typically defined using a structure: // Definition of a node ...

Updated 2 months ago by DS

1. Introduction to Linked Lists

Alprog - Elektro KKI Module 6 : Linked List

1.1 What is a Linked List? A linked list is a linear data structure where elements are not stored...

Updated 2 months ago by DS

Difference between Procedure, Function and Impure Function

Digital Sistem Design (PSD/DSG) Module 7 - Procedure, Function, and Imp...

Criteria Procedure Function Impure Function Purpose Perform tasks without returning a valu...

Updated 2 months ago by CH

Procedure, Function and Impure Function Synthesis

Digital Sistem Design (PSD/DSG) Module 7 - Procedure, Function, and Imp...

In VHDL, both "function" and "procedure" can be used in hardware descriptions, but it should be u...

Updated 2 months ago by CH

Impure Function

Digital Sistem Design (PSD/DSG) Module 7 - Procedure, Function, and Imp...

In VHDL, an impure function is a special type of function that is allowed to read or modify signa...

Updated 2 months ago by CH

Function

Digital Sistem Design (PSD/DSG) Module 7 - Procedure, Function, and Imp...

In VHDL, a function is a subprogram used to perform calculations or data processing that returns ...

Updated 2 months ago by CH

Procedure

Digital Sistem Design (PSD/DSG) Module 7 - Procedure, Function, and Imp...

In VHDL, a procedure is a type of language construct used to group several statements and specifi...

Updated 2 months ago by CH

5. File Input/Output

Alprog - Elektro KKI Module 5 : Data Types (Struct, Enum, Ty...

5.1 Why File I/O? So far, all our programs lose their data when they terminate. File I/O allows p...

Updated 3 months ago by DS

4. Type Definitions (typedef)

Alprog - Elektro KKI Module 5 : Data Types (Struct, Enum, Ty...

4.1 What is typedef? typedef creates aliases (alternative names) for existing data types. It make...

Updated 3 months ago by DS

3. Enumerations (enum)

Alprog - Elektro KKI Module 5 : Data Types (Struct, Enum, Ty...

3.1 What is an Enumeration? An enumeration is a user-defined data type consisting of a set of nam...

Updated 3 months ago by DS

2. Structures (struct)

Alprog - Elektro KKI Module 5 : Data Types (Struct, Enum, Ty...

2.1 What is a Structure? A structure is a user-defined data type that groups variables of differe...

Updated 3 months ago by DS

1. Introduction to User-Defined Data Types

Alprog - Elektro KKI Module 5 : Data Types (Struct, Enum, Ty...

1.1 Why User-Defined Types? In previous modules, we learned about basic data types like int, floa...

Updated 3 months ago by DS

When & Which

Digital Sistem Design (PSD/DSG) Module 6 - Looping Construct

When & Which? Comparison Feature for Loop while Loop for-generate Statement Execution Sequ...

Updated 3 months ago by JD