随笔分类 -  C

摘要:#include <stdio.h> int main() { int *p = NULL; int i = 1; switch(1) { case 1: { p = &i; printf("Inside switch - Address of i: %p, Value of p: %p\n", ( 阅读全文
posted @ 2024-12-04 10:47 stitchCat 阅读(14) 评论(0) 推荐(0)
摘要:References: Format Specifiers in C 阅读全文
posted @ 2024-10-16 09:07 stitchCat 阅读(9) 评论(0) 推荐(0)
摘要:References: What are weak functions and what are their uses? I am using a stm32f429 micro controller 阅读全文
posted @ 2024-10-11 16:26 stitchCat 阅读(6) 评论(0) 推荐(0)
摘要:References: what do you mean by registering a callback function in c 阅读全文
posted @ 2024-09-26 19:04 stitchCat 阅读(12) 评论(0) 推荐(0)
摘要:References: Implementing a Finite State Machine in C++ Finite State Machines (FSM) in Embedded Systems (Part 1) - There's a State in This Machine! Sta 阅读全文
posted @ 2024-09-24 15:24 stitchCat 阅读(11) 评论(0) 推荐(0)
摘要:References: volatile (computer programming) When and How to use the Volatile Keyword (Embedded C Programming) 阅读全文
posted @ 2024-09-24 15:08 stitchCat 阅读(11) 评论(0) 推荐(0)
摘要:References: Inline function What does it mean to inline a function and how does it affect a program? 阅读全文
posted @ 2024-09-24 14:51 stitchCat 阅读(9) 评论(0) 推荐(0)
摘要:References: const*和*const The data types of const char * and char * const in C language In C, const char * and char * const are two different pointer 阅读全文
posted @ 2024-09-19 16:38 stitchCat 阅读(35) 评论(0) 推荐(0)
摘要:References: C的强符号/弱符号 阅读全文
posted @ 2024-09-19 16:35 stitchCat 阅读(8) 评论(0) 推荐(0)
摘要:References: [what do you mean by registering a callback function in C?] (https://stackoverflow.com/questions/8590335/what-do-you-mean-by-registering-a 阅读全文
posted @ 2024-08-28 19:33 stitchCat 阅读(9) 评论(0) 推荐(0)
摘要:#include <stdio.h> // 函数原型声明 float calc(float a, float y, const char op); float add(float a, float b); float minus(float a, float b); float multiple(f 阅读全文
posted @ 2024-08-28 19:31 stitchCat 阅读(33) 评论(0) 推荐(0)
摘要:References: Function pointers and callbacks 阅读全文
posted @ 2024-08-28 18:20 stitchCat 阅读(7) 评论(0) 推荐(0)
摘要:// Online C compiler to run C program online #include <stdio.h> int main() { char arr[2] = {1, 2}; char *parr0 = NULL; char *parr1 = NULL; char **ppar 阅读全文
posted @ 2024-08-22 09:04 stitchCat 阅读(7) 评论(0) 推荐(0)
摘要:References: why do header files even exist? 阅读全文
posted @ 2024-08-18 05:37 stitchCat 阅读(6) 评论(0) 推荐(0)
摘要:References: What does int argc, char* argv[] mean? 阅读全文
posted @ 2024-08-18 03:36 stitchCat 阅读(21) 评论(0) 推荐(0)
摘要:References: Declaration vs. Definition of a variable in C C++ - Declaration Vs Definition 阅读全文
posted @ 2024-08-18 02:52 stitchCat 阅读(22) 评论(0) 推荐(0)
摘要:Reference: 为何不能在头文件里写定义? // a.c文件 #include "c.h" // #include "c.h" int main(void) { return 0; } // b.c文件 #include "c.h" // #include "c.h" // c.h文件 /* 阅读全文
posted @ 2024-08-18 01:39 stitchCat 阅读(15) 评论(0) 推荐(0)
摘要:References: 关于gcc、make和CMake的区别 阅读全文
posted @ 2024-08-16 20:02 stitchCat 阅读(17) 评论(0) 推荐(0)
摘要:placeholder 阅读全文
posted @ 2024-07-04 09:18 stitchCat 阅读(13) 评论(0) 推荐(0)
摘要:placeholder 阅读全文
posted @ 2024-07-04 08:58 stitchCat 阅读(15) 评论(0) 推荐(0)