|
|
1.1 ! root 1: ! 2: ! 3: void C Keyword void ! 4: ! 5: ! 6: ! 7: ! 8: Data type ! 9: ! 10: ! 11: The keyword void indicates that the function does not return a ! 12: value. Using void declarations makes programs clearer and is ! 13: useful in error checking. For example, a function that prints an ! 14: error message and calls exit to terminate a program should be ! 15: declared void because it never returns. A function that performs ! 16: a calculation and stores its result in a global variable (rather ! 17: than rreettuurrnning the result), or one that returns no value, should ! 18: also be declared void to prevent the accidental use of the func- ! 19: tion in an expression. ! 20: ! 21: ***** See Also ***** ! 22: ! 23: C keywords ! 24: ! 25: ! 26: ! 27: ! 28: ! 29: ! 30: ! 31: ! 32: ! 33: ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.