C中使用memset

int i;html cout<<memset(&i,1,sizeof(int))<<endl;函數 輸出結果是16843009,而不是填充的1111 1111,爲何呢?post 由於memset memcpy 都是string字符串處理函數,不是爲int型作的!htm memset(&n ,1, sizeof(int)) 就是對n指向的內存的4個字節進行賦值,由於memset是字符串處理函數,因
相關文章
相關標籤/搜索