How do you print for example the integers 3,2,1,5,4 in a
binary tree within the console in format where it looks like
an actual binary tree?


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

Post New Answer

More C++ General Interview Questions

int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30

2 Answers   AIG, Quark,


What is istream and ostream in c++?

0 Answers  


Is there finally in c++?

0 Answers  


Show the declaration for a static member variable.

0 Answers  


Are iterators pointers?

0 Answers  






Which of the following operator cannot be overloaded?

2 Answers   TCL,


What is the disadvantage of using a macro?

0 Answers  


Explain the auto storage classes in c++.

0 Answers  


how many controls can we place on single form.

1 Answers   Microsoft,


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

0 Answers  


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

0 Answers   Honeywell,


What do you mean by vtable and vptr in c++?

0 Answers  


Categories