Question
If ‘A’, ‘B’ and ‘C’ are in proportion in the
given order while ‘A’ = 10 and ‘B’ = 50, then find the value of ‘C’.Solution
Given, A = 10
And, B = 50
Since, ‘A’, ‘B’ and ‘C’ are in proportion.
So, (A/B) = (B/C)
So, C = (50 × 50)/10 = 250
If an expression `x = a + b` is computed, and later in the same basic block, `y = a + b` is computed, a compiler can apply which optimization?
Which parser is most commonly used in modern compilers?
Which parsing technique is a top-down parser that cannot handle left recursion and requires the grammar to be free of common prefixes?
Which of the following is NOT a common form of 3-address code?
Which storage class in C indicates that a variable's lifetime is throughout the program execution and its scope is local to the block it is defined in, ...
Dynamic memory allocation (e.g., using `malloc` or `new`) typically occurs in which part of the runtime memory?
What is the primary role of a "Linker"?
The primary goal of code optimization is to:
Data flow analysis is a technique used by optimizers to:
Which of the following is the first phase of a compiler?