answersLogoWhite

0

What is if in C?

Updated: 11/22/2022
User Avatar

Wiki User

11y ago

Best Answer

If is a keyword that introduces a conditional expression. If the expression evaluates true, the statement or statement block that follows is executed, otherwise control is passed to the line following the statement or statement block, which may be another conditional expression.

if( expression_1 )

{

// do something when expression_1 is true

}

else if( expression_2)

{

// do something when expression_1 is false but expression_2 is true

}

else

{

// do something when both expression_1 and expression_2 are false

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is if in C?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does a scale mean on a bar graph?

./c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,c,


How do you play Airplanes on the piano?

I only know the chorus but here it goes...... C C C C C C D C Bb D C Bb D Eb D C C C C C C C C C Bb C C C Bb D Bb Bb C D C C C C C C D C Bb D C Bb F F D C C C C C C C C C Bb C C C D Bb Bb A G I hope this helps you! ;)


What are the notes to dynamite on the alto saxophone?

These are the basic notes: C-C-C-C-C C-C-C-C-C C-C-C-C-B-C-D-E-G-A E-E-E-E-G-A-C-D-C-A-C-D-C-A


What is the chemical equation when 1-Bromooctane reacts with Sodium cyanide?

It should be a substitution reaction: C-C-C-C-C-C-C-C-Br+NaCN----→C-C-C-C-C-C-C-C-CN+NaBr


What is c c c c?

4 c.


What is the length of a linear continuous chain of 18 carbon atoms?

The atomic radius of C is 73 pm so if this, -, stands for a radius the chain looks like -C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C-C- so take 19( - ) for (-)=73 and yopu get 1387 pm


What is c plus c plus c plus c plus c?

c + c + c + c + c = 5 * c.


What are the possible structures with all IUPAC C7H12?

i think that Pentanal; Pentan-2-on; Pentan-3-on; 2,3Dimethylpropanon; 2-Methylbutanon; 2-Ethylpropanal; 2-Methylbutanal; 3-Methylbutanal; 3-Methylbutanon; is the right answer,but there are even more


C C C C C C C puzzle?

Seven Seas


Is ch3-c-c-c-c-c-c-c-c-ch3 a polmer?

Yes it is! A homo polymer indeed.


What are The whole titanic keybored notes?

c c c c b c c b c d e d c c c c b c c g(lower) c c c c b c c g (lower) c d g (lower) g higher) f e d e f e d c b c b b c d e d


Notes to play Up on the house to on the trombone?

C C D C A F A C D D C A G C C C C D C A G F A C D D D C C A G C F Bb Bb D C D D A G G BbA C C F A C C D C A F A C D D D C A A G C F. (: