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
Can we change the basic meaning of an operator in c++?
Describe private, protected and public?
What is a manipulator in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
Where are setjmp and longjmp used in c++?
Write a program which uses Command Line Arguments
What methods can be overridden in java?
Is c++ a good beginners programming language?
What are arithmetic operators?
Explain what data encapsulation is in c++?
What is c++ map?
What is the difference between struct and class?
What is array in c++ example?
What is the cout in c++?
What is the v-ptr?