Skip to main content

Home/ Programming tutorials and source codes/ Group items tagged if

Rss Feed Group items tagged

Sushil Saini

Decision making using if else, nested if else, else-if in C, C , C#: Part 2 | Techno V... - 0 views

  •  
    Check how to refine a #decisionmaking #C, C++ program using #ifelse, #nestedifelse, #logicaloperators and #elseif. This post includes: - How to use if-else - C++ program to find even and odd numbers using if-else condition - How to use Nested if-else - #Cplusplusprogram to calculate divisions from mark sheet of students using nested if-else - Disadvantages of using nested if-else - C++ program showing divisions of students using logical operators with if condition - Disadvantages of using logical operators - Replacing if and logical operators conditions with else-if condition.
Sushil Saini

Difference between switch and if else ladder - Which one is better | Techno Visitors - ... - 0 views

  •  
    Do you know the conditions where the use of switch and if else ladder C/ C++/C# programming controls are better over each other? In this post, you will read: - An example program showing how switch is more manageable than if else. - Disadvantages of switch over if-else - Advantages of switch over if-else - Why switch works faster than if-else? - Where to use switch over if-else? - And where to use if-else over switch?
Sushil Saini

Decision making in C, C , C# languages using if - Part 1 | Techno Visitors - tablet, l... - 0 views

  •  
    Check how to make decisions in programming languages like C, C++, C#. In this post, you will read about: - What is decision making? - Decision making in C, C++, C# - If statement - Multiple statements within if - C++ example program for if condition - Relational operators - C program showing use of relational operators
Sushil Saini

How IF statement surprises the beginners - C, C , C# tutorial | Techno Visitors - tabl... - 0 views

  •  
    Sometime the if (expression) statement in C, C++, C# languages leads to unexpected results for the beginners. Do you know why they get confused and surprised with such strange behaviour of if? Read how.
Sushil Saini

Decision making statements in C, C , C# programming - Chapter 2 | Techno Visitors - ta... - 0 views

  •  
    This tutorial includes 4 units covering replies to almost all questions relating to decision making with all if constructs of C, C++ and C# programming languages.
Sushil Saini

How to use conditional operator in C, C : common errors, test exercises | Techno Visit... - 0 views

  •  
    Do you know what common mistakes programmers do while using conditional operators? In this post you will also get: - What are conditional operators? - C, C++ example programs for ternary operators - What are the benefits of using conditional operator over if? - What are the disadvantages of using ternary operator? - Important considerations while using conditional operators - Which common mistakes beginners do while using conditional operators? - C, C++ test exercise programs for beginners to find output and errors
1 - 6 of 6
Showing 20 items per page