We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
void 指无类型,常用在函数前,表示什么也不用返回。
void
* 代表一个指针,如 int *p 代表指针 p 指向一个整型,char *s 代表指针 s 指向一个字符串的首地址。
*
int *p
char *s
而 void * 代表一个可能指向任何类型的指针,如下代码所示:
void *
#include <stdio.h> int main() { void *p; // 使用它装一个整数 int a = 3; p = &a; printf("%d", *(int *)p); // 使用它装一个字符串 char s[] = "hello, world"; p = s; printf("%s", p); return 0; }
Sorry, something went wrong.
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: