Control statements in c

Control statement என்பது program-ல், எந்த statement(coding) எப்பொழுது run-ஆகா வேண்டும், எப்படி run-ஆகா வேண்டும் என்பதை முடிவு செய்வது இந்த control-statements.

Control statement இரண்டு வகைகளாக பிரிக்கபடுகிறது

  • Conditional statement
  • Unconditional statement

Conditional statement

ஒரு statement எப்பொழுதும் ஒரு condition-ஐ அடிப்படையாக கொண்டுதான் செயல்பட வேண்டும் என்பதே conditional statement

Unconditional statement

ஒரு statement condition-ஐ சார்ந்து செயல்படாமல் தனிச்சையாக செயல்படுவதே unconditional statement

control-statements

List of conditional statement

  • if statement
  • if... else statement
  • switch statement
  • for loop
  • while loop
  • do...while loop

Unconditional statement

  • Goto or Jumping statement

Comments

Gayathri 6th June,2023 07:56 pm
Thank you for your explanation
Santhiya 20th March,2023 11:32 am
Hi
AJAY M 14th March,2022 02:43 pm
nice