Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

127 total results found

2. Input/Output Operations

Alprog - Elektro KKI Module 1 : Introduction to C

2.1 Output Operations 2.1.1 Basic Output - printf() Function Signature: int printf(const char *format, ...); Python vs C Comparison: Python C print("Hello") printf("Hello\n"); print("Value:", x) printf("Value: %d\n", x); print(f"x = {x}") printf("x...

3. Variables and Data Types

Alprog - Elektro KKI Module 1 : Introduction to C

3.1 Variable Declaration Python vs C: Python C x = 5 int x = 5; name = "John" char name[] = "John"; pi = 3.14 float pi = 3.14f; 3.2 Basic Data Types 3.2.1 Integer Types Type Size (bytes) Range Usage char 1 -128 to 127 Small integers, chara...

4. Arithmetic Operators

Alprog - Elektro KKI Module 1 : Introduction to C

4.1 Basic Arithmetic Operators Operator Operation Python Example C Example + Addition a + b a + b - Subtraction a - b a - b * Multiplication a * b a * b / Division a / b a / b % Modulus a % b a % b 4.2 Important Division Differences Integer D...

5. Flow Control

Alprog - Elektro KKI Module 1 : Introduction to C

5.1 Conditional Statements 5.1.1 if Statement Python vs C Syntax: Python: if condition: statement1 statement2 elif another_condition: statement3 else: statement4 C: if (condition) { statement1; statement2; } else if (another_condition)...

6. More Migration Guide: From Python to C

Alprog - Elektro KKI Module 1 : Introduction to C

6.1 Common Syntax Differences Feature Python C Comments # This is a comment // This is a comment Block Comments """Multi-line""" /* Multi-line */ Code Blocks Indentation { } braces Statement End Line break ; semicolon Boolean Values True, False ...

7. Best Basic Practices and Style Guidelines

Alprog - Elektro KKI Module 1 : Introduction to C

7.1 Naming Conventions Variables: Use descriptive names (student_count, not sc) Constants: Use uppercase (MAX_SIZE, PI) Functions (we will learn more about this in the next module): Use verb-noun pattern (calculate_area, print_result) 7.2 Code Organization #...

8. Practical Examples

Alprog - Elektro KKI Module 1 : Introduction to C

8.1 Complete Program Examples Example 1: Simple Calculator #include <stdio.h> int main() { float num1, num2, result; char operator; printf("Enter first number: "); scanf("%f", &num1); printf("Enter operator (+, -, *, /): "); ...

9. Common Debugging Tips

Alprog - Elektro KKI Module 1 : Introduction to C

9.1 Compilation Errors Missing semicolons: Add ; at the end of statements Undeclared variables: Declare variables before using them Type mismatches: Ensure compatible types in assignments (this mostly happens in function parameters or calling, we will learn m...

Part 1 - Understanding Linked List

Algorithm Programming Module 1 - Linked List

Definition of Linked List A Linked List is a linear data structure consisting of elements called nodes. Each node has two main parts: Data – stores the value of the element. Pointer/Reference – points to the next node (or the previous node in a Doubly Lin...

Part 2 - Types of Linked List

Algorithm Programming Module 1 - Linked List

Types of Linked Lists Based on the structure of linked lists, they can be classified into several types: Singly Linked List Doubly Linked List Circular Linked List 1. Singly Linked List The singly linked list is the simplest form of linke...

Part 1 - Example

Algorithm Programming Module 2 - Example

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc consectetur, mauris ut condimentum porta, lorem massa placerat orci, vel condimentum lacus tortor eget quam. Nam scelerisque a arcu et dapibus. Sed ornare mi quis leo euismod ornare. Curabitur tempu...

Part 3 - Searching

Algorithm Programming Module 1 - Linked List

1. Searching in a Custom Singly Linked List #include <bits/stdc++.h> using namespace std; // Linked list node class Node { public: int key; Node* next; }; // Add a new node at the front void push(Node** head_ref, int new_key) { ...

Part 4 - Manual VS STL List

Algorithm Programming Module 1 - Linked List

A doubly linked list is a data structure where each node contains a pointer to the next and previous nodes, allowing traversal in both directions. In C++, you can implement it manually or use the built-in STL std::list. Differences between Manual Doubly Linke...

Tutorial: Setting Up a Collaborative Jupyter Lab

Laboratorium

This tutorial outlines the steps to set up a collaborative Jupyter Lab environment for multiple users. Make sure to follow each step carefully. A. Initial Preparation Create a Tmux Session: Open your terminal and run the command: tmux new -t your_se...

Surat Menyurat

Laboratorium Persiapan Praktikum Semester Baru

Vivado Simulation and Synthesis Tutorial

Digital Sistem Design (PSD/DSG) Module 1 - Setup

1.3 Vivado Tutorial For this tutorial, we will use this code for reference :  LIBRARY IEEE; USE IEEE.STD_LOGIC_1164.ALL; ENTITY AND_GATE IS PORT ( A : IN STD_LOGIC; B : IN STD_LOGIC; Y : OUT STD_LOGIC ); END AN...

ModelSim Installation Tutorial

Digital Sistem Design (PSD/DSG) Module 1 - Setup

Quartus Prime Installation Tutorial

Digital Sistem Design (PSD/DSG) Module 1 - Setup

1.1 Quartus Prime Explanation Intel Quartus Prime is a comprehensive software suite from Intel used for designing, synthesizing, and programming programmable logic devices (PLDs), such as Field-Programmable Gate Arrays (FPGAs) and Complex Programmable Logic D...

Vivado Installation Tutorial

Digital Sistem Design (PSD/DSG) Module 1 - Setup

1.1 Vivado Explanation Vivado is an Integrated Design Environment (IDE) developed by Xilinx (now AMD) used for designing, simulating, and implementing digital circuits on FPGAs (Field-Programmable Gate Arrays). It serves as the primary software tool to take a...

ModelSim Simulation Tutorial

Digital Sistem Design (PSD/DSG) Module 1 - Setup