Most answered questions in Programming and DS

33 votes
8 answers
62
55 votes
8 answers
63
An $n \times n$ array $v$ is defined as follows:$v\left[i,j\right] = i - j$ for all $i, j, i \leq n, 1 \leq j \leq n$The sum of the elements of the array $v$ is$0$$n-1$$n...
32 votes
8 answers
64
4 votes
7 answers
65
What will be output if you will compile and execute the following C code? void main() { printf("%d",sizeof(5.2)); }$4$$8$$2$$16$
1 votes
7 answers
66
38 votes
7 answers
70
Let $T$ be a tree with $10$ vertices. The sum of the degrees of all the vertices in $T$ is ________
25 votes
7 answers
72
Consider the following C program.#include<stdio.h int main () { int m=10; int n, n1; n=++m; n1=m++; n ; n1; n-=n1; printf(“%d”, n); return 0; }The output of the prog...
10 votes
7 answers
73
9 votes
7 answers
75
If node A has three siblings and B is parent of A, what is the degree of A?0345
29 votes
7 answers
77