in the following, A D
B G E
C F
Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is:
a)Represented by a different letter in abov fig:
b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are
equal. wch does g represents?
C
1. A*B*C=B*G*E=D*E*F => B*G=D*F and A*C=G*E (1.a).
2. From numbers in 0,..9, we found these equalities:
9*2 = 6*3
8*3 = 6*4
8*1 = 4*2
6*2 = 4*3
3. In these equalities, only (9*2 = 6*3 and 8*1 = 4*2)
satisfies (1.a) that only one number (number 2) exists on
both two equalities.
4. G = 2.
| Is This Answer Correct ? | 7 Yes | 1 No |
why destructor is not over loaded?
Child cObj = new Parent() Wahts the output ?
What is encapsulation process?
What is abstract class in oops?
how do you handle yourself when you feel the wald is aganist you
#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 inheritance write a program to show use of inheritance?
What are constructors in oop?
What is this interview room ? Is it a class or an object.
What is the difference between encapsulation and polymorphism?
What is the important feature of inheritance?
What is differance between Abstract and Interface