Open remisharrock opened 5 years ago
=#225
@EllaHa @petraBT can we add 2 more questions to make it creschedo ? like:
1/ Suppose we have made the following declarations:
int arr[3] = {3, 2, 1};
int * ptr = arr;
* ptr = 1;
* (arr+ 1) = 2;
* (ptr + 2) = 3;
what is the value of: arr[0] ? arr[1] ? arr[2] ?
And
2/ 1/ Suppose we have made the following declarations:
int arr[2] = {3, 2};
int * ptr = arr;
int * ptr2 = ptr + 1;
* (ptr2 - 1) = 2;
* (ptr + 1) = 3;
what is the value of: arr[0] ? arr[1] ?
Sure, that sounds good! Is there a way for the learner to get feedback on those two questions first though, before attempting the next ones? Otherwise, how does this help?
please write ; crescendo
I do agree with Petra for the feedback after the two first questions.
Some testers suggested to add autocorrected exercices for pointers. Just to pratice more...
I am afraid we can't add any change like this at this stage. This has to be kept as improvement for the next course session.
Which course: 3 Modular Programming and Memory Management What type of content: quiz URL: https://courses.edx.org/courses/course-v1:Dartmouth_IMTx+DART.IMT.C.03+1T2018/courseware/37c45e787250473ebf3b8b1a30ce0a93/5319a7f0315444919a4e2054c18b5bc6/?child=last Description: à la demande de Rémi je (re?) signale : ces questions sont difficiles surtout si on est un peu étourdi peut-être faudrait-il en rajouter deux avant plus simples pour faire crescendo Rémi dixit other comments: your name: screenshot: Codecast timing: Tasgrader code submitted: Operating system: win xp which web browser? iron 49 Status actuel: