Page 1 of 1

What will be the value of the variable A after execution of the following code? int k[10] = {4, 6, 8, 10, 4, 12, 1 , 7,

Posted: Mon Jun 06, 2022 12:15 pm
by answerhappygod
What Will Be The Value Of The Variable A After Execution Of The Following Code Int K 10 4 6 8 10 4 12 1 7 1
What Will Be The Value Of The Variable A After Execution Of The Following Code Int K 10 4 6 8 10 4 12 1 7 1 (28.37 KiB) Viewed 27 times
What Will Be The Value Of The Variable A After Execution Of The Following Code Int K 10 4 6 8 10 4 12 1 7 2
What Will Be The Value Of The Variable A After Execution Of The Following Code Int K 10 4 6 8 10 4 12 1 7 2 (27.07 KiB) Viewed 27 times
What will be the value of the variable A after execution of the following code? int k[10] = {4, 6, 8, 10, 4, 12, 1 , 7, 3, 1 }; int A=10; int B=13; int C=5; void setup() { while C>0 { A=k [C+1]; } void loop() { // put your main code here, to ru n repeatedly: } }

What will be the value of the variable A after execution of the following code? int k [10] = {4, 6, 8, 10, 4, 12, 1 , 7, 3, 1 }; int A=10; int B=13; int C=5; void setup() { A=calc (k[1], k[3] ); } void loop() { // put your main code here, to ru n repeatedly: } int calc(int a, int b) { int z=0; if (a>b) z=a*b; if (a<b) z-b%a; return z; }