What is the difference between const int *ptr and int const
*ptr???
Answer Posted / abdul sami
'const int* ptr' means the value whose address is being
held by ptr is constant and cant be changed while
'int const *ptr' means the pointer cant be changed like it
cant be incremented or decremented although you can change
the date pointed to by ptr.
| Is This Answer Correct ? | 41 Yes | 57 No |
Post New Answer View All Answers
What is solid in oops?
Can an interface inherit a class?
class type to basic type conversion
What is overloading in oops?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is polymorphism explain?
What is abstraction oop?
What is encapsulation oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is oops?what is its use in software engineering?
What is oops in simple words?
What is object-oriented programming? Webopedia definition
What is balance factor?
What is abstraction example?