What is double in c++?


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

Post New Answer

More C++ General Interview Questions

Do we have private destructors?

12 Answers   Symphony, TCS,


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

0 Answers  


What is a constructor in c++ with example?

0 Answers  


Explain what are mutator methods in c++?

0 Answers  


What can I safely assume about the initial values of variables which are not explicitly initialized?

0 Answers  






What are the debugging methods you use when came across a problem?

1 Answers  


Explain the difference between abstract class and interface in c++?

0 Answers  


What is the benefit of encapsulation?

0 Answers  


Where must the declaration of a friend function appear?

0 Answers  


Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 Answers  


What are the uses of pointers?

0 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  


Categories