-5
int len;
char * STR=(char*)malloc(len);
char * c =STR+len;
int ncount;
for(ncount--; ncount>=0; ncount--)
{
Body of the loop.
}
int len;
char * STR=(char*)malloc(len);
char * c =STR+len;
int ncount;
for(ncount--; ncount>=0; ncount--)
{
Body of the loop.
}
請把問題*放在問題*中。並學習如何使用* debugger *,這將有助於您在逐句執行語句時檢查所有變量的值。 –
該片段的每一行都是不明智的危險編碼實踐的例子。用真實的代碼問一個真正的問題,並停止使用SO。 – Clifford