What are shallow and deep copy?
No Answer is Posted For this Question
Be the First to Post Answer
How can we read/write Structures from/to data files?
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?
What do you understand by zombie objects in c++?
Why we use #include iostream in c++?
What is OOPs
What is a virtual destructor?
Is C++ case sensitive a) False b) Depends on implementation c) True
What is the use of 'using' declaration in c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Why c++ is called oop?
What is void pointer in c++ with example?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?