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

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -