Automation and bots

 Помощь      Поиск      Пользователи


 Страниц (1): [1]   

> Описание: Initialization of arrays int a[2]={5, 7};
Kibor
Отправлено: 19 Декабря, 2018 - 03:35:11
Post Id



Администратор
Full Member


Покинул форум
Сообщений всего: 160
Дата рег-ции: Дек. 2017  
Репутация: 0
Карма 0




Now it is possible to assign values to arrays when they are declared.

CODE:
int a[2]={5, 7};

tantamount to
CODE:
int a[2];
a[0]=5;
a[1]=7;


The array is filled with 0 index.
Care must be taken that there is no overflow of the array.
You can not fill the entire array.


At the moment, only one-dimensional static array can be initialized this way.

-----
The Visual Code Editor is Kibor. Creating bots without knowledge of programming.

Learning function for recognizing text.
-----
 
 Top
Страниц (1): [1]
Сейчас эту тему просматривают: 1 (гостей: 1, зарегистрированных: 0)
« About Kibor »


Все гости форума могут просматривать этот раздел.
Только администраторы и модераторы могут создавать новые темы в этом разделе.
Только зарегистрированные пользователи могут отвечать на сообщения в этом разделе.
 




Powered by