Computer Science, asked by bharatkumar551999, 9 months ago

In the following example tell which statement is correct if((condition 1==1)&&(condition 2)==1)) printf("success");
A)condition 1will be evaluated first,condition 2will be evaluated second
B)condition 2will be evaluated first, condition 1will be evaluated second
C)condition 1will be evaluated first,condition 2will be evaluated only if condition 1is true
D)condition 2will be evaluated first, condition 1will be evaluated only if condition 2is true

Answers

Answered by jeetkrl7
5

Answer:

C)condition 1will be evaluated first,condition 2will be evaluated only if condition 1is true

Answered by yoodyannapolis
0

Option(c) is the Correct answer to the given question

Explanation:

Following are the description of Statements

  • There is && is between the two conditions of the if statement The && operator combining the more then one the condition also it returns true when both the condition are true otherwise it returns False.
  • Firstly the first condition is evaluated if first condition i.e  if((condition 1==1) become true then  after the second condition is evaluated i.e "(condition 2)==1)".

Learn More:

https://brainly.in/question/1529890

Similar questions