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
How long it will take to learn c++?
What are the differences between the function prototype and the function defi-nition?
What is c++ mutable?
Explain some examples of operator overloading?
What is the use of register keyword with the variables?
What are containers in c++?
What is the use of "new" operator?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Explain pass by value and pass by reference.
What is stl containers in c++?
What is an html tag?
Explain the static member function.
What are the methods of exporting a function from a dll?
what is C++ exceptional handling?
Why is "using namespace std;" considered bad practice?