Whatever happened to the 'entry' keyword?

后端 未结 4 1148
青春惊慌失措
青春惊慌失措 2020-12-16 09:18

While cruising through my white book the other day, I noticed in the list of C keywords. entry is one of the keywords on that list.

It is reserved f

4条回答
  •  孤街浪徒
    2020-12-16 10:01

    I had no idea, so I googled to find something about this. This is what I found.

    First, it was included as a reserved keyword.

    Q: What was the entry keyword mentioned in K&R1?
    A: It was reserved to allow functions with multiple, differently-named entry points, but it has been withdrawn.

    (From http://archives.devshed.com/forums/c-c-134/c-programming-faqs-371017.html.)

    It was never standardized; some compilers used it, in a very personal way.

    It was later declared obsolete, I guess.

提交回复
热议问题