Differentiate between the message and method?
Answer / ritesh pal
Message:
Objects communicate by sending messages to each other.
A message is sent to invoke a method.
Method:
Provides response to a message.
It is an implementation of an operation.
| Is This Answer Correct ? | 0 Yes | 0 No |
this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }
Difference between a copy constructor and an assignment operator.
What are compilers in c++?
Explain the uses oof nested class?
Please explain the reference variable in c++?
What is the use of seekg in c++?
Why do we use the using declaration?
Explain how to initialize a const member data.
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
Implement strncpy
What is do..while loops structure?