Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C Compiler2020
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Analytics
    • Analytics
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • CSC
  • CSC-Compiler
  • Compiler2020
  • Wiki
  • 评测方案与语言标准
  • 类似const 数组作为参数传递这样合不合法?

类似const 数组作为参数传递这样合不合法? · Changes

Page history
Create 评测方案与语言标准/类似const 数组作为参数传递这样合不合法? authored 4 years ago by 朱昱臣's avatar 朱昱臣
Show whitespace changes
Inline Side-by-side
Showing
with 5 additions and 0 deletions
+5 -0
评测方案与语言标准/类似const-数组作为参数传递这样合不合法?.md 0 → 100644
View page @ 9e2bc157
## 有关const 数组作为参数传递的问题?类似这样,合不合法?
1.const这点在SysY的函数参数上没有要求,因为这次没有强调错误检查,比如const 数组作为参数传递时,其元素值不能被改变,因此形参在声明时没有要求加const修饰符
2.对于数组类型的形参,如int fun(int a[][10]) 中的a,第1维的长度是不指定的,因为是形参接收的是数组的地址
\ No newline at end of file
Clone repository
  • GitLab使用与代码提交
    • GitLab报错server certificate verification failed
    • GitLab添加SSHKey后依然无法clone
  • Home
  • 其他
    • 常用工具
    • 疫情期间,队伍远程作业的方案
  • 评测方案与语言标准
    • 基准测试集公开还是隐藏?
    • 开发语言要求
    • 性能测试保证可靠吗?
    • 排行榜是动态的吗?
    • 数组传动态参数是否需要在类型检查阶段检查数组大小,还是只知道维度信息?
    • 是否考察词法语法、类型检查、语义检查的错误检查?
    • 第三方库使用程度
    • 类似const 数组作为参数传递这样合不合法?
    • 能否使用cmake、make等构建项目
    • 评分是否需要考虑编译器的性能,例如编译速度?
View All Pages

Menu

Explore Projects Groups Topics Snippets