C语言编译错误:#167: 参数类型不匹配
{"title":"../Core/Src/main.c(33): error: #167: argument of type "unsigned char" is incompatible with parameter of type "unsigned char *"","description":"本文介绍了C语言编译错误“#167: argument of type "unsigned char" is incompatible with parameter of type "unsigned char *"”的含义,并提供了解决方法。","keywords":"C语言, 编译错误, #167, 参数类型不匹配, 指针","content":"这个错误表示在第33行的代码中,传递给函数的参数类型不匹配。具体来说,函数期望接收一个指向无符号字符的指针(unsigned char *),但实际上传递给它的是一个无符号字符(unsigned char)。\n\n解决这个错误的方法是将传递给函数的参数包装在一个指针中,以便与函数的参数类型匹配。"}
原文地址: https://www.cveoy.top/t/topic/pRNY 著作权归作者所有。请勿转载和采集!