Consider the following code fragment:
int main(void) {
int m = 4;
mystery ( m );
mystery ( m );
printf("%d", m);
return 0;
}

What is the output on the monitor if mystery is defined as
follows ?

void mystery (int m) {
m = m+3;
}

Answer Posted / rahul darekar

since in c lang we have to define fun first before we use it
but in this program fun mystery() in not defined and still
it is called so it will give error.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How long it will take to learn c++?

618


What are the differences between the function prototype and the function defi-nition?

622


What is c++ mutable?

705


Explain some examples of operator overloading?

645


What is the use of register keyword with the variables?

549






What are containers in c++?

567


What is the use of "new" operator?

657


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1460


Explain pass by value and pass by reference.

595


What is stl containers in c++?

585


What is an html tag?

632


Explain the static member function.

709


What are the methods of exporting a function from a dll?

650


what is C++ exceptional handling?

629


Why is "using namespace std;" considered bad practice?

653