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

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中子函数最多有几个形参

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 C89 31个,C99 127个. ANSI C89 2.2.4.1 Translation limits The implementation shal ...

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

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

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

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

  4. c语言函数有两个参数,C中子函数最多有几个形参

    该楼层疑似违规已被系统折叠 隐藏此楼查看此楼 C89 31个,C99 127个. ANSI C89 2.2.4.1 Translation limits The implementation shal ...

  5. 函数模板,函数模板重载,可变参数模板,函数模板覆盖,通过引用交换数据

     1.函数模板初级,如果想使用模板,需要实例化,实例化的方式是加上<数据类型> #include <iostream> //函数模板可以对类型进行优化重载,根据类型会覆盖 ...

  6. 【C 语言】C 语言 函数 详解 ( 函数本质 | 顺序点 | 可变参数 | 函数调用 | 函数活动记录 | 函数设计 ) [ C语言核心概念 ]

    相关文章链接 : 1.[嵌入式开发]C语言 指针数组 多维数组 2.[嵌入式开发]C语言 命令行参数 函数指针 gdb调试 3.[嵌入式开发]C语言 结构体相关 的 函数 指针 数组 4.[嵌入式开发 ...

  7. python自定义函数参数_python自定义函数的参数之四种表现形式

    (1)def a(x,y):print x,y 这是最常见的定义方式,调用该函数,a(1,2)则x取1,y取2,形参与实参相对应,如果a(1)或者a(1,2,3)则会报错 (2)def a(x,y=3 ...

  8. 函数占位符和占位参数

    1.函数占位符 #include<iostream> using namespace std;//函数高级-函数的占位参数 //函数默认参数//语法:返回值类型 函数名 (形参 = 默认值 ...

  9. 【C语言进阶深度学习记录】三十九 C语言中的可变参数(参数可变的函数)

    用过printf()函数的热都知道,printf的参数可以有多个,它是可变的,根据我们输出参数的类型以及个数的不同来确定参数.今天来学习C语言中参数可变的函数是如何实现的. 文章目录 1 可变参数 2 ...

最新文章

  1. java程序员入门先学什么开发者工具
  2. 设置grep高亮显示匹配项
  3. NC:菌物组构建---随机性v.确定性、干旱胁迫、宿主筛选、统一动态(郭良栋、杨军点评)
  4. (经典)Hibernate多对一关系映射(四)
  5. html5简介的文本框,HTML5实战与剖析之表单——文本框脚本
  6. Real Application Testing Database Replay、SPA的价格和介绍
  7. 关于Easy ui 操作 控件 disable 整理
  8. 876. Middle of the Linked List
  9. c语言定义int变量 故意输入字母,怎样用C语言输入一段文本,以什么作为输入终止的标志?又怎样才能按输入的格式输出该文本?...
  10. 猪肉种类,全国“名猪”大盘点
  11. java x86 x64_jdk x86与jdk x64 有什么区别
  12. 运维简历怎么写项目描述_简历中的项目描述
  13. 风压和功率计算公式轴流式_离心风机风压计算
  14. 欧拉函数的求法(三种)
  15. buuctf_[ACTF新生赛2020]swp
  16. 第五章 数组程序(Ivor Horton)
  17. 金融数据分析(十二)房贷综合问题
  18. 关于IntelliJ IDEA
  19. MDT 2013 从入门到精通之Office 2013应答文件生成
  20. 《Android入门到精通》第一章学习笔记总结

热门文章

  1. mysql统计各年龄段的数量
  2. linux mkdir错误,thinkphp在linux下报mkdir()错误
  3. 赛码输入输出java_赛码网-计算器的新功能(Java实现)
  4. MySQL笔记创建表结构_mysql笔记
  5. makefile文件编写_九图记住Makefile
  6. yum 错误:Invalid configuration value: failovermethod=priority
  7. 虚拟主机选择php版本,虚拟主机的php用什么版本好
  8. processing图片粒子化_个人见到的processing(优质且全的教程,一定看原文)
  9. solidworks无法获得下列许可standard_无法获取下列许可solidworks standard解决方法SW实战营...
  10. c# 基于layui的通用后台管理系统_基于spring boot和vuejs的通用后台管理系统脚手架 guns-lite...