which of the following is not an secondary constant
a) array
b) real
c) union
No Answer is Posted For this Question
Be the First to Post Answer
Do the parentheses after the type name make a difference with new?
What is the difference between an array and a list?
What are the strengths of C++?
Where can I run c++ program?
What is vector processing?
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?
Explain dangling pointer.
Can a constructor be private?
Can we change the basic meaning of an operator in c++?
Why would you make a destructor virtual?
Which bit wise operator is suitable for putting on a particular bit in a number?
Is eclipse good for c++?