If you want to share several functions or variables in several files maitaining the consistency how would you share it?


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

Post New Answer

More C++ General Interview Questions

Why are pointers used?

0 Answers  


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

0 Answers  


What is the difference between delegation and implemented-in-terms-of?

0 Answers  


Write a program to find the Fibonacci series recursively.

0 Answers   Huawei,


Which software is best for coding?

0 Answers  






is throwing exception from a constructor not a good practice ?

5 Answers   Ericsson,


Write about an iterator class?

0 Answers  


When is a template a better solution than a base class?

1 Answers  


Difference between a homogeneous and a heterogeneous container

0 Answers  


How to avoid a class from instantiation?

8 Answers   Symphony,


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

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  


Categories