Simple C array declaration / assignment question -


In high level languages ​​I might be able to do something similar to this example in C and it will be fine.

  int value [3]; If (1) value = {1,2,3}; Printf ("% i", value [0]);  

Thanks.

You can declare a static array with data, start with:

Fixed intervals [3] = {1,2,3}; ... if (1) memv (value, initialize, size);

Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -