Are vectors passed by reference c++?
No Answer is Posted For this Question
Be the First to Post Answer
What is the difference between multiple and multilevel inheritance in c++?
How can I improve my c++ skills?
What is a smart pointer?
What is meant by entry controlled loop?
0 Answers Agilent, ZS Associates,
What are advantages of c++?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
Difference between pointer to constant and constant pointer to a constant. Give example.
Why c++ is not a pure oop language?
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?
Should you pass exceptions by value or by reference?
Explain the auto storage classes in c++.
Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";