Implicit function declarations in C

后端 未结 6 1521
你的背包
你的背包 2020-11-22 07:04

What is meant by the term \"implicit declaration of a function\"? A call to a standard library function without including the appropriate header file produces a warning as i

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 08:03

    Implicit declarations are not valid in C.

    C99 removed this feature (present in C89).

    gcc chooses to only issue a warning by default with -std=c99 but a compiler has the right to refuse to translate such a program.

提交回复
热议问题