x = 0.5, y = 0.0
What is the output of the following expression in C language ?
x * y < i + j || k
The question asks to evaluate a C language expression: $x * y < i + j || k$.
Initial variable values are:
We need to follow C's operator precedence rules:
Let's evaluate step-by-step:
Now, evaluate the logical OR operation: $(result of comparison) || k$.
The expression evaluates to $true$. In C, when a boolean result is expected or implicitly converted to an integer type, $true$ is represented as $1$.
Therefore, the output of the expression is $1$.
Which among the following is a valid string function?
A function which calls itself is called a
Which of the following function sets first n characters of a string to a given character?
Which of the following statement provides an easy way to dispatch execution to different parts of code based on the value of the expression?
Which of the following operators has left to right associativity?