468 views
3 votes
3 votes

Consider the following code

1 Answer

Best answer
5 votes
5 votes
It will change the value of all the nodes which are odd.

Means root->left  will become 0 from 1

and root->right will become 6 from 7

4  

0 6

6 4 2

8 2 8

Now sum of internal nodes wil be : 4 + 0 + 6 + 6 + 4 + 2 =  22
selected by

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
3 answers
2
Gurdeep Saini asked Jan 14, 2019
1,731 views
#include <stdio.h>int arr[] = { 10, 20, 30, 40, 50 };static int count ;inc() {return ++count;}int main(){arr[count++]=inc();printf("%d ", arr[count]);printf("%d ", arr[0]...
0 votes
0 votes
0 answers
3
utkarshkosta asked Dec 22, 2018
379 views
#include<stdio.h int main() { char A[5][7][6]; char *p[5][7][6]; printf(“%d\t”,(unsigned)(A+1)-(unsigned)A); printf(“%d”,(unsigned)(p+1)-(unsigned)p); } OPTIONS:4...
1 votes
1 votes
0 answers
4