例如,在引用文献中:
type va_arg (va_list ap, type)
ap
是否代表参数指针?还有别的吗?
最佳答案
这实际上是一个很容易回答的问题。
ap
代表参数指针。
来自 The C Programming Language , 第二版,Brian W. Kernighan 和 Dennis M. Ritchie:
7.3 Variable-length Argument Lists
[...] The type va_list is used to declare a variable that will refer to each argument in turn; in minprintf, this variable is called ap, for "argument pointer"
关于c - 'ap' 在 C 示例中代表什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24345199/