Tag: C Language
gotoxy() in C Language (Formatted Output)
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
Jump Statement (goto) in C Language
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
Switch Case in C Language
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
For loop in C Language
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
Do. While Loop in C Language
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.
Conditional Operator (Ternary Operator) in C Language
There is a special operator ‘?’ (called Conditional or ternary) in C Language that is used like if. Syntax Example Here if x is greater
Using While Loop in C Language
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.
if statement in C Language
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
Arithmetic Operators in C Language
To perform any Arithmetic Operation between two variables or values arithmetic operators are used. + Addition or Unary Plus – Subtraction or Unary Minus *