C语言中如何判断两个数组内容是否相同?

如题所述

C语言有个函数 memcmp 是用来进行内存比较的
extern int memcmp(void *buf1, void *buf2, unsigned int count);

if(0==memcmp(ID,ID1,20)) //ID1等于ID2
{
}
温馨提示:答案为网友推荐,仅供参考
相似回答