What is the use of structure in c++?


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

Post New Answer

More C++ General Interview Questions

Which bit wise operator is suitable for turning off a particular bit in a number?

0 Answers  


What do c++ programmers do?

0 Answers  


Why null pointer is used?

0 Answers  


Can a function take variable length arguments, if yes, how?

0 Answers  


Difference between const char* p and char const* p?

1 Answers  






What is the history of c++?

0 Answers  


What are the advantages of inheritance in c++?

0 Answers  


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

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  


What is c++ w3school?

0 Answers  


Why is main an int?

0 Answers  


What is c++ virtual inheritance?

0 Answers  


Categories