Why is standard template library used?
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?
How java is different from c and c++?
what is pulse code modulation?
Explain virtual destructor?
What is the use of static functions?
What is function prototyping? What are its advantages?
What is else syntax in c++?
What is a breakpoint?
What are pointer-to-members in C++? Give their syntax.
When is a template better solution than a base class??
What is c++ vb?
Does improper inheritance have a potential to wreck a project?