スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
warning C4724: 剰余の 2 番目のオペランドは、コンパイル時に 0 と評価され、不定の結果を返します。
ソース(バグ有り):
//check odd or even
#include <stdio.h>
#include <stdlib.h>
int hantei (int x);
int main(void)
{ |
ソース(修正済み):
//check odd or even
#include <stdio.h>
#include <stdlib.h>
int hantei (int x);
int main(void)
{ |
スポンサード リンク