given a set based questions and 5 questions based on it
next data sufficiciency questions 2
and 2/3 english sentence completion with options very easy
and 2 synononmys
paragraph with 10 questions 10 minutes
replace =,-,*,% with -,%,+,* type questions 5
3 questions lik following
itssickhere itssickthere itssickhere istsickhere
which is nt alike the others
very easy
No Answer is Posted For this Question
Be the First to Post Answer
Explain polymorphism? What r the types of polymorphism? pls give examples?
How is exception handling carried out in c++?
What is new keyword in oops?
How is class defined?
What are main features of oop?
What is an interface in oop?
Why is object oriented programming so hard?
What are the advantages of inheritance?
26 Answers IBS, TCS,
#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.
What is encapsulation in ict?
what type of question are asked in thoughtworks pair programming round ?
What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?