揮発性のメモ2

http://d.hatena.ne.jp/iww/

2014-09-29から1日間の記事一覧

char* A[] = {"Hello"};

C++

#include <iostream> int main() { char* A[] {"Hello"}; // =を書き忘れた printf("%s\n",A[0]); return 0; } C++11だとコンパイル通る。</iostream>