What is the use of structure in c++?
No Answer is Posted For this Question
Be the First to Post Answer
Which bit wise operator is suitable for turning off a particular bit in a number?
What do c++ programmers do?
Why null pointer is used?
Can a function take variable length arguments, if yes, how?
Difference between const char* p and char const* p?
What is the history of c++?
What are the advantages of inheritance in c++?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
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?
What is c++ w3school?
Why is main an int?
What is c++ virtual inheritance?