Re: [Dev-C++] What is wrong with this array declaration?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2003-05-30 07:13:38
|
Christian Schmidt wrote:
> char list_ch[][2] = {'1','a','2','b','3','c','4','d','5','e','6','f'};
This is a 2-dimensional array. Are you sure you wanted this?
Try:
char list_ch[] = {'1','a','2','b','3','c','4','d','5','e','6','f'};
--
Greetings,
Balázs
|