📄 exp3c5x_3.c
字号:
/*****************************************************************
* exp3c5x_3.c - C program for adding a series of numbers
* for CCS experiments in Section 3.7.3.3
******************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <intrindefs.h>
/*****************************************************************
* Define variable arrays variables
*****************************************************************/
int num[8] = {19660, 19660, 6554, -9830, -32768, -29491, 9830, 6554};
int i,y;
void main()
{
/* Understand the difference between _saad and _lsaad */
/* _lsadd can be treated as OVM turn off */
y = num[0];
for (i=0; i<7; i++)
{
y = _sadd(num[i+1],y);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -