Which sort is best for the set: 1 2 3 5 4

a) Quick Sort

b) Bubble Sort

c) Merge Sort


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

Post New Answer

More C++ General Interview Questions

What problems might the following macro bring to the application?

0 Answers  


List the features of oops in c++?

0 Answers  


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

0 Answers  


Write a struct time where integer m, h, s are its members?

0 Answers  


how to swap two strings without using any third variable ?

11 Answers  


How do you establish a has-a relationship?

0 Answers  


In a function declaration, what does extern mean?

0 Answers  


Explain about profiling?

1 Answers  


Explain the scope of resolution operator.

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  


Which c++ compiler is best?

0 Answers  


Is c++ a float?

0 Answers  


Categories