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
Is it possible for a member function to delete the pointer, named this?
Define a constructor?
Who invented turbo c++?
Is c++ proprietary?
Why is c++ so fast?
What is the advantage of an external iterator.
Do class method definitions?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
How do you save a c++ program?
What are activex and ole?
What does catch(…) mean?
Why is main an int?
What is the difference between public, private, and protected access?
Explain the operation of overloading of an assignment operator.
what are Operators and explain with an example?