Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
144 views

@Lundin shows how to check if a passed expression is an array at compile-time here: Lvalue conversion of _Generic controlling expression involving array clang warning wrong?: #define IS_ARRAY(T) ...
Madagascar's user avatar
  • 7,470
0 votes
2 answers
215 views

I wanted to dynamically allocate a partially fixed size array, but ran into errors which would lead me to believe I don't actually know how an array like this functions, so I'm trying to figure out ...
Ethan's user avatar
  • 167
-1 votes
2 answers
176 views

The program is: object Hello extends App { val a: List[Int] = List(1, 3, 4, 5, 8, 10, 11, 22, 33) for (i <- 0 to 11) println(a(i)) } The Output is: 1 3 4 5 8 10 11 22 33 java....
lousycoder's user avatar
1 vote
2 answers
292 views

I'm currently working on a binary-encoder which, when finished, should check certain checkboxes based on the decimal number that's entered. I already have the script for converting the number to an ...
Colin Chadwick's user avatar