objective c - Why do functions use -(void) and not -(nil) in Obj-C? -
Objective- I often see functions that do not declare anything: - (zero) myFunction {single ?? | but why zero , this way - (zero) myFunction {a ?? | They both do not return "nothing"? Historically in the related languages (syntax) as the language of C-language, Zero indicates that no type is being returned from the function. More precise, in the form of variables (or related to it) given type , there are also types in functions, for example, a function that returns an integer A int type function or a function whose int is the same even if it gives something else. If the function does not return anything - it does not return anything - how is it related? It does not have any type, and zero type represents such a thing. I do not know in Objective-C, but if I correctly understand, like the zero id (or any type of ID), almost like an underlying implementation. and faucet is a (zero *) type, later an typeless indicator can indicate anyth...