What will be the value of result after the following code is executed? #include int fun (x) return x*x;

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter5: Looping
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question
2:27 PM
70
El
return x*x ;
void main ()
{
int result=2;
result = fun (1+2+3);
|3D
}
Select one:
O a. 36
O b. 6
O c. 2
O d. Nothing
merna Ali
2:26, äclull 22.01.16
Transcribed Image Text:2:27 PM 70 El return x*x ; void main () { int result=2; result = fun (1+2+3); |3D } Select one: O a. 36 O b. 6 O c. 2 O d. Nothing merna Ali 2:26, äclull 22.01.16
What will be the value of result after the following code
is executed?
#include<iostream.h>
int fun (x)
return x*x;
void main (0
int result=2 ;
result
fun (1+2+3);
%3D
Transcribed Image Text:What will be the value of result after the following code is executed? #include<iostream.h> int fun (x) return x*x; void main (0 int result=2 ; result fun (1+2+3); %3D
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Print statement
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,