问答 2020-06-22 来自:开发者社区

C语言指针作为参数的问题?报错

typedef struct{//结构   char data[LENGTH];   int length; }Type; void initList(Type *L){//L是Type指针      L = (Type *)malloc(sizeof(Type));     L->length=0; ...

问答 2020-06-04 来自:开发者社区

c语言函数参数泛类型指针参数问题? 400 报错

c语言函数参数泛类型指针参数问题? 400 报错 typedef long intptr_t; int sapi_header_set_status(void *arg){ printf("%ld", (int)(intptr_t) arg); } intptr_t status_code = 400; sapi_header_set_status(&status_code); ...

问答 2020-06-03 来自:开发者社区

C语言的函数参数问题看似简单, 其实有内涵?? 400 报错

C语言的函数参数问题看似简单, 其实有内涵?? 400 报错 void  change(int *a) {     a = malloc(sizeof(int));     (*a) = 168; } int* change2() {     int *a = malloc(sizeof(int))...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注