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
Do you know what are pure virtual functions?
What is the function of I/O library in C++ ?
Why can’t you call invariants() as the first line of your constructor?
Write about the members that a derived class can add?
What are c++ templates used for?
What is the difference between containment and delegation?
What is setf in c++?
Where Malloc(), Calloc(), and realloc() does get memory?
What is c++ virtual inheritance?
What is #include iostream?
What is switch case in c++ syntax?
What are the unique features of C++.
How is c++ used in the real world?
Why do we need runtime polymorphism in c++?
Write about the scope resolution operator?