Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.


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

Post New Answer

More C++ General Interview Questions

Is there a sort function in c++?

0 Answers  


Difference between static global and global?

16 Answers   Microsoft, Symphony, Wipro,


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.

1 Answers  


Do we have to use initialization list in spite of the assignment in constructors?

0 Answers  


What is the difference between method overloading and method overriding in c++?

0 Answers  






What is enum c++?

0 Answers  


What is the use of "new" operator?

0 Answers  


What is name mangling?

3 Answers  


Can I uninstall microsoft c++ redistributable?

0 Answers  


What is virtual constructor paradigm?

5 Answers   HCL, HP,


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

0 Answers  


Differentiate between a template class and class template?

1 Answers  


Categories