What Will Be The Value Of The Variable Z After Execution Of The Following Code Int N 10 3 5 2 11 4 15 2 7 1 (29.11 KiB) Viewed 22 times
What Will Be The Value Of The Variable Z After Execution Of The Following Code Int N 10 3 5 2 11 4 15 2 7 2 (29.12 KiB) Viewed 22 times
What will be the value of the variable z after execution of the following code? int n [10] = { 3, 5, 2, 11, 4, 15, 2 7, 3, 1 }; int k=2; int z=3; void setup() { z*=n[k]; } void loop() { }
What will be the value of the variable z after execution of the following code? int n[10] = { 3, 5, 2, 11, 4, 15, 2 , 7, 3, 1 } ; int k=3; int z=3; void setup() { switch (k) { case 0: z-n [1]; break; break; case 1: z-n [2]; break; case 2: z-n [3]; default: z-n[9] ; } } void loop() { }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!