What is the use of seekg in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Who created c++?

0 Answers  


What do you mean by inheritance in c++? Explain its types.

0 Answers  


When does a name clash occur?

1 Answers  


Is c++ slower than c?

0 Answers  


What is lazy initialization in c++?

0 Answers  






What is implicit pointer in c++?

0 Answers  


What is the object serialization?

0 Answers  


Differentiate between a deep copy and a shallow copy?

1 Answers  


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?

5 Answers  


Difference between class and structure.

0 Answers  


What is scope operator in c++?

0 Answers  


What is 'Copy Constructor' and when it is called?

1 Answers  


Categories