How would you print out the data in a binary tree, level by
level, starting at the top?
Answer Posted / janraj cj
Use Breadth First search algorithm. This is using queue
as the data structure .
| Is This Answer Correct ? | 13 Yes | 5 No |
Post New Answer View All Answers
What is the ANSI C Standard?
How many bytes is a struct in c?
Differentiate Source Codes from Object Codes
Is there any possibility to create customized header file with c programming language?
What are types of structure?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What are dangling pointers? How are dangling pointers different from memory leaks?
hi send me sample aptitude papers of cts?
writ a program to compare using strcmp VIVA and viva with its output.
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
Explain what are the standard predefined macros?
Hi can anyone tell what is a start up code?
Can a pointer be static?
What is quick sort in c?
Why c is called a middle level language?