What will be the value of variable number2 after execution of following code?Choose the correct option from the given options.
int main(){
int number1 = 2, number2;
number2 = sqr(number1);
printf("number2 = %d",nurnber2);
return 0;
}
int sqr(int n){
return(n*n);
}//End of program
(a) number2 = 4
(b) number2 = 6
(c) number2 = 8
(d) number2 = l8
Answers
Answered by
3
answer = no b ......
Similar questions
Math,
7 months ago
Math,
7 months ago
Physics,
7 months ago
Computer Science,
1 year ago
Math,
1 year ago