0

when i compiled my c++ code in linux platform (ubuntu), i got an error regarding with an array.
the error states: array must be initialized with a brace-enclosed initializer.

//source error
long long byParam[2] = "";

can anybody show me a solution on my error...thanks

3
Contributors
3
Replies
4
Views
10 Years
Discussion Span
Last Post by Bench
0
//source error
long long byParam[2] = "";

Try this instead, to initialise all elements to zero

long long byParam[2] = { 0 } ;
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.