Tableaux : accès aux éléments

[q2 : numeric]

Cet exercice comporte deux étapes.

Question 1 / 2 : On exécute les lignes de code suivantes :
(cliquer en bas sur le bouton d'aide pour comprendre la syntaxe)

int[] tab = { 3,1,2 } ;
print( tab.length ) ;

Quelle est la valeur qui sera affichée ?

La valeur affichée est : 



Do you confirm?

Exercice not entirely completed. Are you sure you want to submit?

This page is not in its usual appearance because WIMS is unable to recognize your web browser.
In order to access WIMS services, you need a browser supporting forms. In order to test the browser you are using, please type the word wims here: and press ``Enter''.

Please take note that WIMS pages are interactively generated; they are not ordinary HTML files. They must be used interactively ONLINE. It is useless for you to gather them through a robot program.