题解 | #嵌入式字符串所占空间#
嵌入式字符串所占空间
https://www.nowcoder.com/practice/2cb4b687338f4ff988edf39ce745af8f
/**
* 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
*
*
* @param str string字符串
* @return bool布尔型
*/
#include <stdbool.h>
#include <string.h>
bool fun(char* str ) {
// write code here
return sizeof(str)==strlen(str)? true:false;
}

查看15道真题和解析