program13_02.c
来自「C语言入门经典一书的所有代码。书上面的所有代码均在此。希望大家喜欢」· C语言 代码 · 共 17 行
C
17 行
/* Program 13.2 Demonstrating assertions */
#undef NDEBUG /* Switch on assertions */
#include <stdio.h>
#include <assert.h>
int main(void)
{
int y = 5;
for(int x = 0 ; x < 20 ; x++)
{
printf("\nx = %d y = %d", x, y);
assert(x<y);
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?