Fundamentals of C Language: From Keywords to Variables, The First Step in Programming

1. Keywords in C Language In C language, keywords are part of the programming language that have special meanings, used to inform the compiler about the structure and control flow of the program. Keywords are predefined words that cannot be used to name variables, functions, or any other identifiers. Common keywords include: <span>int:</span> Defines a … Read more

Understanding C Language Vocabulary Elements

Understanding C Language Vocabulary Elements

In the world of C programming, mastering its vocabulary elements is fundamental for writing code smoothly. 1. The Six Major Tokens in C Language There are six key tokens in C language, which are the basic units that make up C code: keywords, punctuation, identifiers, constants, string constants, and operators. 2. Rules for Identifiers Identifiers … Read more

C Language Learning Notes: 1. Hello World

C Language Learning Notes: 1. Hello World

The course referenced in these notes is Frank’s C language course reset in 2024: C Language Master: Coding Crazy, Criticizing Loudly (Part 1) Bilibili[1] C Language Master: Coding Crazy, Criticizing Loudly (Part 2) Bilibili[2] Although I have previously taken C language courses and have some understanding of C, I sometimes feel that I have a … Read more

Learning C++ from Scratch Day 2 (C++ Identifiers, Keywords, and Operators) – The Most Comprehensive and Easy-to-Understand Guide

Learning C++ from Scratch Day 2 (C++ Identifiers, Keywords, and Operators) - The Most Comprehensive and Easy-to-Understand Guide

Identifiers In C++, an identifier is a name used to uniquely identify program elements such as variables, functions, classes, objects, and namespaces, making them easier to reference and manipulate in the code. Rules for naming identifiers (must be followed): 1. Composition characters: Identifiers can only consist of letters (A-Z, a-z), digits (0-9), and underscores (_), … Read more

C Language Naming Beyond ‘Hundred Family Surnames’: Discussing the ‘Hidden Rules’ Known Only to Experts

C Language Naming Beyond 'Hundred Family Surnames': Discussing the 'Hidden Rules' Known Only to Experts

In the last lesson, we used the metaphor of “Hundred Family Surnames” to easily grasp the basic rules of C language identifiers. We learned that names must start with a letter or an underscore, can be followed by numbers, but cannot use keywords. However, this is just the “beginner’s guide” to the art of naming … Read more

Mastering C/C++: A Comprehensive Guide to Identifiers and Naming Conventions

Mastering C/C++: A Comprehensive Guide to Identifiers and Naming Conventions

Overview: This article primarily introduces the meaning of identifiers in C/C++ and their naming conventions. It aims to help readers quickly understand what variable names, function names, macro definitions, array names, etc., are, as well as their respective naming methods and rules. 1. Identifiers In C language, identifiers mainly refer to variable names, array names, … Read more

The Art of Naming in C Language: Understanding Identifiers and Overcoming Code Illiteracy!

The Art of Naming in C Language: Understanding Identifiers and Overcoming Code Illiteracy!

In the last lesson, we discussed the “past and present” of the C language and the art of “white space” in code. Today, we will explore a more fundamental and extremely important concept—identifiers. When you hear the term “identifier”, does it sound a bit academic and hard to grasp? Don’t worry! Simply put, it is … Read more

C Language Exercise Class – Day 18

C Language Exercise Class - Day 18

01 (Multiple Choice) To define a one-dimensional array a with 10 int elements, the following definition statements arecorrect: A) #define N 10 int a[N]; B) #define n 5 int a [2*n]; C) int a[5+5]; D) int n=10,a[n]; Answer: ABC Explanation: For option D: In the C89 standard, the size of an array must be a … Read more

C Language Exercise Class – Day 27

C Language Exercise Class - Day 27

01 The semicolon is a separator between C statements, not a part of the statement (True/False) Answer: False Explanation: The semicolon is an essential part of the statement. 02 The curly braces “{” and “}” can only serve as delimiters for function bodies (True/False) Answer: False Explanation: Uses of curly braces: Delimiters for functions Delimiters … Read more

LoRaWAN Security Q&A

LoRaWAN Security Q&A

Click the blue text above to join us! In the world of the Internet and the Internet of Things, security is always one of the most concerning issues. LoRaWAN, which has a mature development in the LPWAN field, has special considerations and settings regarding security. Below are several questions and answers related to security. 1. … Read more