- 博客(7)
- 收藏
- 关注
原创 static在C语言中的用法
静态关键字static。在C语言中,static关键字修饰变量和函数:1、static修饰局部变量 2、static修饰全局变量 3、static修饰函数
2023-02-06 17:45:59
374
原创 C语言中前缀运算符++a与后缀运算符++a的区别
C语言中++a与++a的区别a++与++a在单独使用时与a=a+1等价,数值上二者也是一致的。原理同样也可以推广到 --a与a-- 运算中
2022-10-26 15:17:39
1186
原创 C语言中的函数返回值、return用法、return 0详解
定义:函数的返回值是指函数被调用之后,执行函数体中的代码所得到的结果,这个结果通过return语句返回。1) return 语句的一般形式为:return 表达式;return (表达式); 为了简明,()一般不写。例如:return 0return 0;表示程序正常退出,即当return语句提供了一个值时,这个值就成为函数的返回值。return 1;表示程序异常退出,返回主调函数来处理,继续往下执行。
2022-10-17 19:35:22
22521
原创 error: non-ASM statement in naked function is not supported
error: non-ASM statement in naked function is not supportederror: parameter references not allowed in naked functionserror: non-ASM statement in naked function is not supportederror: references not allowed in naked functions
2022-10-05 16:58:17
2559
1
原创 Verilog-阻塞赋值与非阻塞赋值
什么是阻塞赋值与非阻塞赋值,阻塞赋值的赋值号用“=”表示,对应的电路结构往往与触发沿没有关系,只与输入电平的变化有关系。它的操作可以认为是只有一个步骤的操作,即计算赋值号右边的语句并更新赋值号左边的语句,
2022-09-16 15:38:17
290
原创 Modelsim软件仿真出错:Modelsim is exiting with code 7.
Modelsim is exiting with code 7.Check the transcript file for more information on the fatal error.This dialog will automatically dose in 10 seconds.上述为modelsim进行波形仿真时出现的错误。
2022-09-16 12:33:03
3709
8
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人