Generic selection

Download c eBook

Syntax

  • _Generic ( assignment-expression , generic-assoc-list )

Parameters

ParameterDetails
generic-assoc-listgeneric-association OR generic-assoc-list , generic-association
generic-associationtype-name : assignment-expression OR default : assignment-expression

Remarks

  1. All type qualifiers will be dropped during the evaluation of _Generic primary expression.
  2. _Generic primary expression is evaluated at translation phase 7. So phases like string concatenation have been finished before its evaluation.

Related Examples

Stats

239 Contributors: 3
Saturday, July 23, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook