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
What are the steps in the development cycle?
What do you mean by “this” pointer?
What is input operator in c++?
What is c++ code?
what is a class? Explain with an example.
Define the process of error-handling in case of constructor failure?
Explain the isa and hasa class relationships.
What is constructor and destructor in c++?
Is c++ faster than c?
Write about the role of c++ in the tradeoff of safety vs. Usability?
What is the difference between struct and class?
What is the array and initializing arrays in c++?
What are the various situations where a copy constructor is invoked?
How do you clear a set in c++?
Array base access faster or pointer base access is faster?