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
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; }