Шукаєте відповіді та рішення тестів для MEA3 : Informatique? Перегляньте нашу велику колекцію перевірених відповідей для MEA3 : Informatique в moodle.umontpellier.fr.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'https://cdn.jsdelivr.net/highlight.js/9.1.0/styles/github.min.css';
link.media = 'all';
head.appendChild(link);
hljs.initHighlightingOnLoad();
What is the console output produced by the code below ?
#define LNG 8int main(){
int tab[LNG];
int i;
for(i=0; i<LNG; i++)
{
tab[i] =
2*i+1;
}
for(i=0; i<(LNG>>1); i++)
{
printf("%d ", tab[2*i]);
}
}
When the size of an array is not known at compile time, we always can "resize" an array at run time.
var head = document.getElementsByTagName('head')[0];
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'https://cdn.jsdelivr.net/highlight.js/9.1.0/styles/github.min.css';
link.media = 'all';
head.appendChild(link);
hljs.initHighlightingOnLoad();
What is the console output produced by the code below ?
int tab[4] = {5,7,3,6};
printf("%d", tab[1]);