下面程序的输出结果是什么?
#include <assert.h>
int main() {
int n = 5;
assert(n > 3); //语句 1
n = n+2;
assert(n > 7);//语句 2
return 0;
}断言n>3失败;程序在语句1中止
断言n>7失败;程序在语句2中止
程序返回0,n值为7
编译错误
下面程序的输出结果是什么?
#include <assert.h>
int main() {
int n = 5;
assert(n > 3); //语句 1
n = n+2;
assert(n > 7);//语句 2
return 0;
}断言n>3失败;程序在语句1中止
断言n>7失败;程序在语句2中止
程序返回0,n值为7
编译错误