これが私のコードの一部です。次の要素がないかどうかを確認し、プログラムを終了します。しかし、ポインターを整数と比較するという警告が表示されます。どうすれば修正できますか、乾杯。
エラーはこの部分 if(nums[i] == NULL)
/* scanf the file, and store the value in the nums */
for(i = 0; i < numOfInt; i++){
fscanf(f, "%d", &nums[i]);
/* check if the value is too big */
if(nums[i] == NULL){
printf("arg1 is not equal to nums of element in the file\n");
exit(1);
}
}