Asked by Jaime Andres on Jun 02, 2024

verifed

Verified

____ is a valid statement in C.

A) a = 10 = c = 25;
B) a = b = c = 25;
C) 2 = b;
D) a - 1 = c;

Statement

An instruction that a programming language interpreter can execute.

C

A general-purpose, procedural computer programming language supporting structured programming, lexical variable scope, and recursion.

Valid

Refers to something that is correct, acceptable, or in good standing.

  • Comprehend valid statement syntax in C programming.
verifed

Verified Answer

ZK
Zybrea KnightJun 07, 2024
Final Answer :
B
Explanation :
Option B is correct because in C, you can assign the same value to multiple variables in one statement by chaining the assignment operator. This will assign the value 25 to variables a, b, and c sequentially from right to left.