What does the colon signify in a C function?

前端 未结 3 1823
旧巷少年郎
旧巷少年郎 2021-01-26 22:04

What is this use of the colon called?

The following code is taken from the book Learn Core Audio.

    int main(int argc, const char * argv[])
           


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-26 22:26

    That's a label. It's used along with a goto statement to control the flow of your program.

    goto and Labeled Statements (C)

提交回复
热议问题