close
Blogtrottr
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中
Yahoo!奇摩知識+ - 分類問答 - 電腦網路 - 發問中 
c語言條件判斷式之疑問
Mar 25th 2015, 04:06


#include <stdio.h>


int main(void) {
    int a = 0;
    if(a= 0|| a==0) 
printf("%d\n",a);
    printf("%d\n",a);
    return 0;
}

printf有兩個,兩個都是1
為何a值會變成1了呢??  boolean 為true 是1,
可是這裡只是一個判斷條件,滿足這個條件printf  a值不是嗎?
 
 

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 kkoki0httzobg 的頭像
    kkoki0httzobg

    線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍

    kkoki0httzobg 發表在 痞客邦 留言(0) 人氣()