+ 1

can i declare the values of int array to variables like this?also what if i want to enter the values to specific positions

int bd[][]={a,b,c,d,e,f}

19th May 2017, 7:14 AM
CoDEX
CoDEX - avatar
6 Respostas
0
no you can't. the bd was an incomplete type. try to fill some numbers to define the array.
19th May 2017, 7:21 AM
DarkSpy
+ 2
No
19th May 2017, 7:19 AM
Vishnu ks
Vishnu ks - avatar
+ 2
1)The array bd is of datype integer and you're feeding it char values and that's illegal which will throw you an error. 2)As for your 2nd question yes you can insert in specific position but there are some prerequisites www.sanfoundry.com/c-program-insert-element-specified-position-array/ the above website will guide you through the process it's basically manipulation done in array and before referring to this article see that your loops concepts are clear as well as you know nested loops well and that's all. I hope you take the efforts to understand it.
20th May 2017, 4:16 PM
Jibin Philipose
Jibin Philipose - avatar
0
ok
19th May 2017, 7:20 AM
CoDEX
CoDEX - avatar
0
thx
19th May 2017, 7:20 AM
CoDEX
CoDEX - avatar
0
what if i want to enter the values to specific positions
19th May 2017, 7:22 AM
CoDEX
CoDEX - avatar