Question: What would be the output of the following code? #include int mysteryFunction 1 ( int a , int b ) ; int mysteryFunction 2 (

What would be the output of the following code?
#include
int mysteryFunction1(int a, int b);
int mysteryFunction2(int a);
int main()
{
// pointer to a function
int (*functionPtr1)(int, int)= &mysteryFunction1;
int (*functionPtr2)(int)= &mysteryFunction2;
printf("%d",(*functionPtr2)(10));
return 0;
}
int mysteryFunction1(int a, int b)
{
return a * b;
}
int mysteryFunction2(int a)
{
return a * a;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!