What is the standard template library (stl)?
No Answer is Posted For this Question
Be the First to Post Answer
Why do we use setw in c++?
How can virtual functions in c++ be implemented?
Explain calling an object's member function(declared virtual)from its constructor?
How to construct virtual constructor
6 Answers CIStems Software, Symphony,
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
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 the use of templates?
What is an associative container in c++?
We use library functions in the program, in what form they are provided to the program?
What is a singleton c++?
What is virtual destructor ans explain its use?
In a function declaration what does extern means?