Const char *p , char const *p What is the difference between the above two?
No Answer is Posted For this Question
Be the First to Post Answer
What is abstraction c++?
What are the basics of classifying different storage types, why?
2 Answers Astergate, Symphony,
Do you know what is overriding?
What is the role of C++ shorthand's?
Write a C++ Program to check whether a number is prime number or not?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
What is an operator function? Describe the function of an operator function?
How a new element can be added or pushed in a stack?
How do you declare a set in c++?
What are shallow and deep copies?
What is static in c++?