Are vectors passed by reference c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is the difference between multiple and multilevel inheritance in c++?

0 Answers  


How can I improve my c++ skills?

0 Answers  


What is a smart pointer?

1 Answers  


What is meant by entry controlled loop?

0 Answers   Agilent, ZS Associates,


What are advantages of c++?

0 Answers  






What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

0 Answers  


Difference between pointer to constant and constant pointer to a constant. Give example.

0 Answers   HAL,


Why c++ is not a pure oop language?

0 Answers  


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?

5 Answers  


Should you pass exceptions by value or by reference?

0 Answers  


Explain the auto storage classes in c++.

0 Answers  


Write a program to swap 2 chars without using a third varable? char *s = "A"; char *p = "B";

7 Answers   CTS,


Categories