To Print the line at particular location we can use gotoxy() function. Basically screen is divided in 80 Columns and 25 Rows, you can specify
C language supports jump statement like ‘goto’. You can conditionally jump to any line for execution in C Language using goto statement. You have to
As an alternate of if..else in some cases we can use switch.case. Switch case is also a decision making control. We can use Switch.. case with Integral Data Type (int/char/short etc..) only, Switch case not be
As we have discussed earlier, loop are used for repeated statement executions. Same as while loop ‘For Loop’ is also an entry control loop. Means
We have discussed while loop in our earlier post. There is another loop for same purpose is do.while. Do.. While is an exit control loop.
There is a special operator ‘?’ (called Conditional or ternary) in C Language that is used like if. Syntax Example Here if x is greater
Loops are used to execute repeated statements. While is a simple loop (iteration) that is used like Execution of any loop depends on three points.
For Decision making we can use if statement in C Language. If statement is used for conditional execution of statements. Basic Syntax of is: Now
To perform any Arithmetic Operation between two variables or values arithmetic operators are used. + Addition or Unary Plus – Subtraction or Unary Minus *