嗨,我有一个简单的指针相关问题。我想把指针传递给函数函数(VAT**PTR,size);我可以把字符串传递给这个函数,就像函数(“Microchip”,9);如果我想通过一个变量,我可以像这个CHAR=0x90那样做;函数(ANP;A 1);我想通过十六进制数为EX0x90;FU。这是错误的。如何把这个数字的地址传递给函数?问候,Akshay
以上来自于百度翻译
以下为原文
Hi,
I have simple pointer related ques
tion.
I want to pass pointer to function
Function(void *ptr,size);
I can pass string to this function like
Function("Microchip",9);
If I want to pass single variable I can do it like this
char a=0x90;
Function(&a,1);
What is I want to pass hex number for ex 0x90;
Function(0x90,1);----This is wrong.
How to pass address of this number to the function?
Regards,
Akshay