What is difference between class and structure in c++?
No Answer is Posted For this Question
Be the First to Post Answer
what is difference between internet and Internet?
12 Answers College School Exams Tests, Microsoft, MIT, TCS,
What is the handle class?
Explain shallow copy?
Which one of the following describes characteristics of "protected" inheritance? a) The base class has access only to the public or protected members of the derived class. b) The derived class has non-public, inheritable, access to all but the private members of the base class. c) The derived class has access to all members of the base class. d) The private members of the base class are visible within the derived class. e) Public members of the derived class are privately accessible from the base class.
structure contains int, char, float how it behaves for big endian and little endian?
Can comments be nested?
What is the best c++ compiler?
What is the iunknown interface?
In a function declaration, what does extern mean?
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?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What does int * mean in c++?