Archive for important programs in c language
You are browsing the archives of important programs in c language.
You are browsing the archives of important programs in c language.
21. What is the full form of CMM (a) Capability Maturity Model (b) Cost Maintainance Model (c) Capability maintainance model (d) Cost Maturity Model Ans:A 22. Sorting is not possible by using which of the following methods? (a) Insertion (b) Selection (c) Exchange (d) Deletion Ans:D 23. What are the methods available in storing sequential [...]
1. What type of memory could be accessed in least time? (a)cache memory (b)secondary memory (c)main memory (d)none Ans:A 2. void main() { int const * p=5; printf("%d",++(*p)); } What is the output? (a) 6 (b) 5 (c) Compiler error (d) Run time error Ans :c 3. main() { [...]
/*insert subtree*/ #include<stdio.h> #include<conio.h> struct rec { long num; struct rec *left; struct rec *right; }; struct rec *tree=NULL; struct rec *insert(struct rec *tree,long num); void *exchange(struct rec *tree); struct rec *temp; void main() { struct rec *tree=NULL; int choice; long digit; do { choice=select(); switch(choice) { case 1: puts("Enter integer: To quit enter 0"); [...]