Document directory
But this problem may be a big problem in C.
What about Question 2 and C?
Functions can modularize the code and facilitate reuse of the Code. C # inherited from C ++ has similar functions, but there are some minor differences.
C Assembly call each other
For the ARM system, calls between functions written in different languages (mix calls) follow the Atpcs (arm-thumb Procedure call Standard), and atpcs mainly defines the rules for passing parameters when function calls and
Be sure to note that C does not support default parameters
C + + supports a function definition of the number of variable parameters, which is related to the order of the stack in the case of the function parameter Call of C + +, first referencing
Http://dev.yesky.com/424/2110924.shtml
Introduction
C/C ++ has a feature different from other languages, that is, it supports variable parameters. Typical functions such as printf and scanf can accept a certain number of parameters. For example:
In/*java, the parameter list is not fixed, but the parameter type is the same, and when used, the formal parameter variable is the reference of the array type */public class Appenter{public static void Main (string[] args) Throws
In C programming we will encounter some functions with variable number of parameters, such as printf ()This function, which is defined as this:int printf (const char* format, ...);In addition to having a parameter format fixed, the number and type
File: mfunentry. BasFunction: encapsulate the callback function -- construct an entry in the form of a common function (a function without the this pointer in the parameter) for the object method (the function with the this pointer in the parameter )
The implementation of the VARIADIC function is closely related to the stack structure of the function call, and normally the function parameter of C is __stdcall, which is from right to left, that is, the rightmost parameter in the function is first
Http://hi.baidu.com/ldlmeiufvkgmtzr/item/8074dd1349b739fddceecafa
I. Why do I need a Variable Parameter Function?
Generally, when programming, the number of formal parameters in the function is usually determined, and all actual parameters
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.