该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

C89 31个,C99 127个。

ANSI C89

2.2.4.1 Translation limits

The implementation shall be able to translate and execute at least one program that contains at least one instance of every one of the following limits:

* 15 nesting levels of c0mp0und statements, iteration control structures, and selection control structures

* 8 nesting levels of conditional inclusion

* 12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, a structure, a union, or an incomplete type in a declaration

* 31 declarators nested by parentheses within a full declarator

* 32 expressions nested by parentheses within a full expression

* 31 significant initial characters in an internal identifier or a macro name

* 6 significant initial characters in an external identifier

* 511 external identifiers in one translation unit

* 127 identifiers with block scope declared in one block

* 1024 macro identifiers simultaneously defined in one translation unit

* 31 parameters in one function definition

* 31 arguments in one function call

* 31 parameters in one macro definition

* 31 arguments in one macro invocation

* 509 characters in a logical source line

* 509 characters in a character string literal or wide string literal (after concatenation)

* 32767 bytes in an object (in a hosted environment only)

* 8 nesting levels for #include'd files

* 257 case labels for a switch statement (excluding those for any

nested switch statements)

* 127 members in a single structure or union

* 127 enumeration constants in a single enumeration

* 15 levels of nested structure or union definitions in a single struct-declaration-list

ISO C99

5.2.4.1 Translation limits

1 The implementation shall be able to translate and execute at least one program that

contains at least one instance of every one of the following limits:13)

— 127 nesting levels of blocks

— 63 nesting levels of conditional inclusion

— 12 pointer, array, and function declarators (in any combinations) modifying an arithmetic, structure, union, or incomplete type in a declaration

— 63 nesting levels of parenthesized declarators within a full declarator

— 63 nesting levels of parenthesized expressions within a full expression

— 63 significant initial characters in an internal identifier or a macro name (each universal character name or extended source character is considered a single character)

— 31 significant initial characters in an external identifier (each universal character name specifying a short identifier of 0000FFFF or less is considered 6 characters, each universal character name specifying a short identifier of 00010000 or more is considered 10 characters, and each extended source character is considered the same number of characters as the corresponding universal character name, if any)

— 4095 external identifiers in one translation unit

— 511 identifiers with block scope declared in one block

— 4095 macro identifiers simultaneously defined in one preprocessing translation unit

— 127 parameters in one function definition

— 127 arguments in one function call

— 127 parameters in one macro definition

— 127 arguments in one macro invocation

— 4095 characters in a logical source line

— 4095 characters in a character string literal or wide string literal (after concatenation)

— 65535 bytes in an object (in a hosted environment only)

— 15 nesting levels for #included files

— 1023 case labels for a switch statement (excluding those for any nested switch statements)

— 1023 members in a single structure or union

— 1023 enumeration constants in a single enumeration

— 63 lev els of nested structure or union definitions in a single struct declaration-list

c语言中函数可以有几个参数,C中子函数最多有几个形参相关推荐

  1. 用c语言对文件的写入和保存,C++_C语言中对文件最基本的读取和写入函数,C语言read()函数:读文件函数( - phpStudy...

    C语言中对文件最基本的读取和写入函数 C语言read()函数:读文件函数(由已打开的文件读取数据)头文件: #include 定义函数: ssize_t read(int fd, void * buf ...

  2. c语言把一个字符从指定文件中读取的函数,C语言中对文件最基本的读取和写入函数...

    C语言中对文件最基本的读取和写入函数 C语言read()函数:读文件函数(由已打开的文件读取数据)头文件: #include 定义函数: ssize_t read(int fd, void * buf ...

  3. c语言中 调用函数除函数名外,【单选题】在 C 语言中 , 调用函数除函数名外 , 还必须有 ( ). (10.0分) A. 函数预说明 B. 实际参数 C. ( ) D. 函数返回值...

    [单选题]在 C 语言中 , 调用函数除函数名外 , 还必须有 ( ). (10.0分) A. 函数预说明 B. 实际参数 C. ( ) D. 函数返回值 更多相关问题 下列关于IMOECDIS性能标 ...

  4. c语言中读和写的作用,C语言中对文件最基本的读取和写入函数

    C语言read()函数:读文件函数(由已打开的文件读取数据) 头文件: #include 定义函数: ssize_t read(intfd,void* buf,size_tcount); 函数说明:r ...

  5. c 语言中虚方法有什么作用是什么,虚函数的作用?

    定义 定义:在某基类中声明为 virtual 并在一个或多个派生类中被重新定 义的成员函数[1] 语法:virtual 函数返回类型 函数名(参数表) {函数体;} 用途:实现多态性,通过指向派生类的 ...

  6. c语言中 字符串常量的界定符,C字符串操作函数

    1.7. 分割字符串 很多文件格式或协议格式中会规定一些分隔符或者叫界定符(Delimiter),例如/etc/passwd文件中保存着系统的帐号信息:$ cat /etc/passwd root:x ...

  7. c语言中结构体类型只有,C语言中main()函数不要返回结构体类型(求助)

    大家先看一下这段程序: #include typedef unsigned char bool; typedef struct _person person; struct _person { boo ...

  8. C语言中使用库函数解析命令行参数

    在编写需要命令行参数的C程序的时候,往往我们需要先解析命令行参数,然后根据这些参数来启动我们的程序. C的库函数中提供了两个函数可以用来帮助我们解析命令行参数:getopt.getopt_long. ...

  9. db2自定义函数能返回几个参数_DB2 用户自定义函数

    用户自定义函数 DB2 内部提供了大量的函数,例如求某个字段最大值的 MAX() 函数,求某个日期所在年份的 YEAR() 函数,等等.如果在使用 DB2 的过程中,需要反复使用同一个功能,就可以把这 ...

最新文章

  1. 函数调用过程,栈帧的一点理解
  2. 耶鲁大学等机构提出的脑机接口软硬件协同设计,增加脑机的更大潜力
  3. ViewPage 一次滑动多页
  4. telnet给服务器发消息,Telnet按字符发送字符串
  5. System.Threading.Interlocked.Exchange(ref m_Value, value);
  6. boost::spirit模块实现演示自定义的、用户定义的类型如何作为标记值类型轻松地与词法分析器集成
  7. 傻瓜突破linux--rootpassword
  8. 怎么计算末年某月某天有几个星期天公司
  9. 如何开始 java core java
  10. 发行版迁移及二进制兼容性注意事项
  11. Atitit.软件开发的最终的设计 dsl化,ast化(建立ast, 解析执行ast)
  12. 【个人经验】3个步骤教你拿到软件著作权证书
  13. 数学之美————每章小结
  14. mysql表空间加密
  15. 加密算法(国密算法)
  16. 54元阿里云上建站详细步骤
  17. 魏文王问扁鹊的注释_魏文王问扁鹊曰阅读答案与翻译
  18. Stata:时变Granger因果检验
  19. OpenCV用FAST、SURF、SIFT、BRISK、ORB等进行特征点提取与匹配
  20. 【VMD-SSA-LSSVM】基于变分模态分解与麻雀优化Lssvm的负荷预测【多变量】(Matlab代码实现)

热门文章

  1. ensp启动设备蓝屏_Windows 10系统遇到蓝屏怎么解决?
  2. 2020春招机考汇总2:扑克牌打出最小次数、钢琴高昂旋律(拼接递增序列)
  3. 关于前端页面测试和抵御 clickjacking attack 的一些方法
  4. Angular Component 实现类,先执行字段初始化,再调用构造函数
  5. SAP Spartacus 会使用 Session timeout 吗?
  6. env-cmd is not recognized as an internal or external command
  7. Angular 自定义 structural 指令的一个例子
  8. SAP Cloud for Customer的inscreen_dataflow处理方式
  9. 如何在SAP Cloud for Customer页面嵌入自定义UI
  10. time Interval in SAP UI5 SalesPipeline