What is the output of the following code:
int v()
{
int m=0;
return m++;
}
int main()
{
cout<<v();
}
1) 1
2) 0
3) Code cannot compile
Answer Posted / raju
ans 0
first it return value ofter that it increment
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What is the types of inheritance?
What is variable example?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
Where is pseudocode used?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
what is the sylabus for priliminaries?
What is polymorphism what are the different types of polymorphism?
Can an interface inherit a class?
Why multiple inheritance is not possible?
What is an advantage of polymorphism?
What are benefits of oop?
What is destructor give example?
What do you mean by Encapsulation?
What is persistence in oop?
What are the types of abstraction?