首页
/
每日頭條
/
知識
/
c語言中3表示什麼
c語言中3表示什麼
更新时间:2025-11-23 03:10:43

  在C語言中,大于的0的正整數都為真,所以3為真,!3表示為假。

  舉例:whlie(3):如果whlie裡面的條件是這樣的話,那麼這個條件一定為真,程序就會進入到whlie循環中去;

  while(!3):如果是這樣寫,那麼這個條件已經為假了,這個循環根本就不會執行。

Comments
Welcome to tft每日頭條 comments! Please keep conversations courteous and on-topic. To fosterproductive and respectful conversations, you may see comments from our Community Managers.
Sign up to post
Sort by
Show More Comments
Copyright 2023-2025 - www.tftnews.com All Rights Reserved