Select the correct option to test your answer:
More Computer Questions
What is the output of the following code? #include<stdio.h> int recursive_sum_of_digits(int n) { if(n == 0) return 0; return n % 10 + recursive_sum_of_digits(n/10); } int main() { int n = 1234321; int ans = recursive_sum_of_digits(n); printf("%d",ans); return 0; }
What is the purpose of the clear() method for dictionaries?
Suppose X is the starting symbol of the given grammar with the following transition rules. Compute the value of X as the root of the parse tree for the expression: 3 & 4 % 7. X → X1 & B | B {X.value = X1.value + B.value, X.value = B.value} B → B1 % D | D {B.value = B1.value * D.value, B.value = D.value} D → num {D.value = num.value}
What will be the new value of x in the following C++ code? #include <iostream> using namespace std; void fun(int &x) { x = 20; } int main() { int x = 10; fun(x); cout << "New value of x is " << x; return 0; }
Which type of graph has all the vertex of the first set connected to all the vertex of the second set?