What is a .h file c++?
No Answer is Posted For this Question
Be the First to Post Answer
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?
Is c++ a low level language?
Can non-public members of another instance of the class be retrieved by the method of the same class?
What is the meaning of string in c++?
Will c++ be replaced?
Explain the pure virtual functions?
Will rust take over c++?
Explain unexpected() function?
Explain the difference between c & c++?
What is the difference between "calloc" and "malloc"?
Can a class be static in c++?
What is oop in c++?