Right Click to Search

Sunday, February 14, 2025

Control Statements : Tips



  1. Whenever condition is evaluated and Results in Non-Zero Value then Condition is Considered as TRUE
  2. Condition is treated as FALSE , if Result of Expression is Negative / Zero
  3. Generally 1 indicates TRUE , 0 indicates FALSE value
  4. Opening and Closing braces are not required if there is only one Statement after if.
  5. Opening and Closing braces are not required if there is only one Statement after else.
  6. Block followed after if and before else is called "if block"
  7. if there is no statement after else then else can be dropped
  8. More than one Conditions can be Combined inside if
  9. Nested Control Statements are allowed
  10. ! Operator Reveres the Value of Expression
  11. Logical && operator indicates "both Conditions must be TRUE"
  12. Logical || operator indicated "Either Conditions must be TRUE"

Listed in : Summary Section

Bookmark & Share

Tags / Keywords : | , ,

Stumble
Delicious
Technorati
Twitter
Facebook

0 Comments:

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email

 

Learn C Programming Copyright © 2010 LKart Theme is Designed by Lasantha, Free Blogger Templates