const char *
char * const
What is the differnce between the above two?
Answer Posted / priya
we can assign char as a constant but we cannot assign
constant as a character
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Do inline functions improve performance?
Which is better c++ or java?
Write a program to show polymorphism in C++?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What are destructors?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
How does the copy constructor differ from the assignment operator (=)?
Is map ordered c++?
If there are two catch statements, one for base and one for derived, which should come first?
how can i access a direct (absolute, not the offset) memory
address?
here is what i tried:
wrote a program that ask's for an address from the user,
creates a FAR pointer to that adress and shows it. then the
user can increment/decrement the value in that address by
pressing p(inc+) and m(dec-).
NOW, i compiled that program and opened it twice (in 2
different windows) and gave twice the same address to it.
now look what happen - if i change the value in
one "window" of the program, it DOES NOT change in the
other! even if they point to the same address in the memory!
here is the code snippet:
//------------------------------------------------------
#include Write a Program for find and replace a character in a string. Is it possible to have a recursive inline function in c++? Can member data be public? How do I download c++?