次のプログラムの赤字の部分に入るべきコードは何でしょうか?
#include <stdio.h> #define SHOW_MESSAGE(M) ShowMessage((M), /* ここに入るべきコードは何か? */ ) static void ShowMessage( const char *pcMsg, const char *pcFileName, int nLineIdx ); void Func(void) { SHOW_MESSAGE( "Hello!" ); } static void ShowMessage( const char *pcMsg, const char *pcFileName, int nLineIdx ) { printf( "FILE:%s\nLINE:%d\nMESSAGE:%s\n", pcFileName, nLineIdx, pcMsg ); }
<< 問題一覧に戻る
(「C言語実力診断クイズ」は2001年5月から9月にかけて作成されたコンテンツです。)