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


Please Help Members By Posting Answers For Below Questions

Can we change the basic meaning of an operator in c++?

848


Describe private, protected and public?

792


What is a manipulator in c++?

905


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6116


Where are setjmp and longjmp used in c++?

820


Write a program which uses Command Line Arguments

833


What methods can be overridden in java?

901


Is c++ a good beginners programming language?

756


What are arithmetic operators?

735


Explain what data encapsulation is in c++?

764


What is c++ map?

750


What is the difference between struct and class?

1019


What is array in c++ example?

829


What is the cout in c++?

761


What is the v-ptr?

878