小编Hem*_*akh的帖子

使用printf的双括号时出现分段错误

#include<stdio.h>
#define POOLNAME_FMT "Hello"

void main() {

 printf((POOLNAME_FMT "Cannot allocate %d bytes" POOLNAME_FMT "in pool not enough memory",5));

}
Run Code Online (Sandbox Code Playgroud)

当我使用双括号时,为什么会出现分段错误printf.即printf(( ));

c linux printf segmentation-fault comma-operator

4
推荐指数
2
解决办法
517
查看次数

标签 统计

c ×1

comma-operator ×1

linux ×1

printf ×1

segmentation-fault ×1