V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
LimitFile
V2EX  ›  问与答

如何理解 C 语言 函数参数类型 ?

  •  1
     
  •   LimitFile · Jun 25, 2019 · 1840 views
    This topic created in 2501 days ago, the information mentioned may be changed or developed.
    我们 C 语言传参,有各种各样的参数类型,如 int A ( void *)空指针参数,如 int A ( int a,...)可变参数。希望有大牛能够罗列一下这些不同的稀奇古怪的参数以及相关用法,感谢感谢。。。。
    3 replies    2019-06-25 18:39:50 +08:00
    laucenmi
        1
    laucenmi  
       Jun 25, 2019 via Android
    领导你好
    GeruzoniAnsasu
        2
    GeruzoniAnsasu  
       Jun 25, 2019 via Android
    学习不是这样学的

    给你个列表并不能帮助学会写代码,况且也没法理解你想要个什么列表

    char
    short
    int
    char *
    short *
    int *

    这样吗?
    还是需要 c language 的 spec


    参数声明又不比变量声明特殊多少
    coderluan
        3
    coderluan  
       Jun 25, 2019
    楼主转行吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1144 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 23:59 · PVG 07:59 · LAX 16:59 · JFK 19:59
    ♥ Do have faith in what you're doing.