What is the use of seekg in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Who created c++?
What do you mean by inheritance in c++? Explain its types.
When does a name clash occur?
Is c++ slower than c?
What is lazy initialization in c++?
What is implicit pointer in c++?
What is the object serialization?
Differentiate between a deep copy and a shallow copy?
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?
Difference between class and structure.
What is scope operator in c++?
What is 'Copy Constructor' and when it is called?