Can we use clrscr in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is a loop? What are different types of loops in c++?
Can you pass a vector to a function?
What is Memory Alignment?
How many lines of code you have written for a single program?
Difference between a copy constructor and an assignment operator.
What is virtual base class?
Is c++ a pure oop language?
Can a constructor be private?
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 are c++ variables?
What is c++ try block?
What is fixed in c++?