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 is setiosflags c++?
How do I use arrays in c++?
Define token in c++.
What is the difference between public, private, and protected access?
Explain terminate() function?
What is the difference between function overloading and operator overloading?
Explain mutable storage class specifier.
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
Should the this pointer can be used in the constructor?
How much is c++ certification?
Differentiate between a pointer and a reference with respect to c++.
What is the use of vtable?
Explain differences between new() and delete()?
What is #include iostream in c++?
Explain selection sorting. Also write an example.