Looking for MEA3 : Informatique test answers and solutions? Browse our comprehensive collection of verified answers for MEA3 : Informatique at moodle.umontpellier.fr.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
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 ?
#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]);
}
}
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]);