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

Is it possible for a member function to delete the pointer, named this?

707


Define a constructor?

685


Who invented turbo c++?

731


Is c++ proprietary?

664


Why is c++ so fast?

622






What is the advantage of an external iterator.

652


Do class method definitions?

666


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

688


How do you save a c++ program?

657


What are activex and ole?

655


What does catch(…) mean?

719


Why is main an int?

619


What is the difference between public, private, and protected access?

692


Explain the operation of overloading of an assignment operator.

786


what are Operators and explain with an example?

828