看板 Programming 關於我們 聯絡資訊
#include<iostream> using namespace std; int main( ) { char a[]={'1','2','3','4','\0'}; cout<<a<<endl; cout<<a[0]<<endl; cout<<&(a[0])<<endl;//這一行為何顯示1234呢? cout<<&a<<endl; cout<<&a+1<<endl; cout<<a+1<<endl;//為什麼不是2 而是234呢? system("pause"); return 0; } 謝謝 -- ┌─────KKCITY─────┐  動態歌詞 讓你成為K歌之王! bbs.kkcity.com.tw \^_^ / http://www.kkbox.com.tw └──From:218.169.113.233 ──┘   唱片公司授權,音樂盡情下載 --