Call By Value And Call By Reference

Call By Value And Call By Reference Are Two Ways To Pass The Value (Or) Data To The Function In C Language. Call By Value Call By Reference  The Original Value Is Not Modified In The " Call By Value "  But The Original Value Is Is Modified In The Call

Read More

Day 13 - Types Of Variables : Variables In C

The Following Are The Types Of  Variables In C Language. Local Variable Global Variable Static Variable Automatic Variable Local Variable  We Will Write int, float, In The Place Of 'void' 'void' is returntype which is of empty space. we will declare local variable inside the function or block ends with return 0; Example  All The Programs I Explained

Read More

Day 12: Type Casting in c

Type Casting in c Allows Us To Convert On Data Type To Another Data Type. We Use Cast Operator For Type Casting Which Is Donated By (type) Syntax (data type)value; Note : It Is Always Recommended To Convert Lower Value To Higher Value To Avoid Data Loss. #include<stdio.h> #include<conio.h> void main() { float f=(float)9/4;     printf("F = %f ",f); getch(); }   Result F = 2.250000 

Read More

Day 11: goto statement in c

goto statement in c Is Also Known As Jump Statement. It Is Used To Unconditionally Jump To Other Label. It Transfers Control To Other Parts Of Program. We Are Using Labels In This Concept. Example Program To Verify Whether The Voter Is Eligible To Vote Or Not. #include<stdio.h> #include<conio.h> voidmain() { int age; char c; clrscr(); check:     // Label // printf("Enter Your Age:

Read More

Day 10 : Continue Statement In C

Continue Statement In C Is Used To Continue The Execution Of The Loop(while,dowhile and for).It Is Used With If Condition With In The Loop. Example - One Table Using Continue Statement (with single number) #include<stdio.h> #include<conio.h> voidmain() { int i; clrscr(); for(i=1;i<=10;i++) { if(i===5) { continue; } printf("%d\n",i); } getch(); } Result 1 2 3 4 ------Continued 5 6 7 8 9 10   Difference Between Break Statement In C And Continue Statements In C Is, Break Break's The Execution Of The

Read More

Break Statement

Break Statement Is Used To Break The Execution Of The Loop(while,dowhile,for) And Switch Case. #include<stdio.h> #include<conio.h> voidmain() { int i; clrscr(); for(i=1;i<=10;i++) { printf("%d\n",i); if(i==5) { break; } } getch(); } Result 1 2 3 4 5 Break Break Statement With Inner Loop #include<stdio.h> #include<conio.h> voidmain() { int i,j; clrscr(); for(i=1;i<=3;j++) { printf("%d\t%d\n",i,j); if(i==2&&j==2) { break; } } } getch(); } Result 1     1 2     2 Break    

Read More

Day 9: Looping Statements

Looping Statements In C Are Used To Execute A Block Of Code Or A Part Of The Program Several Times. (Or) It Iterates A Code (or) A Group Of Code Many Times.   Advantages It Saves The Code It Helps The Traverse The Elements Of Array.   Types Of Loops There Are Three Types Of Loops In C

Read More

Day 8: Switch Statement

Switch Statement Is Used To Execute The Code From Multiple Conditions In C Language.   Note The Switch Expression Must Be Of Integer Or Character Type. The Case Value Must Be Of Integer Or Character Constant. The Case Value Can Be Used In Switch Case. The Break Statement In Switch Case Is

Read More

Day 7: Control Statement

Control Statement s  Are Used To Control The Flow Of Execution. There Are Three Types Of Control Statements In C Language. If Statement If Else If Else Ladder 1.If Statement - It Is Used To Perform Operations Based On The Condition. Syntax If(condition) { //code to be executed; } Example  Write A Program To Print  Given Number Is Even

Read More

Day 6: Escape Sequence

An Escape Sequence In C Language Is Used To A Sequence Of Characters That Doesn't Represent Itself When Divided Inside String Literal. It Is Composed Of Two Or More Characters Starting With \ Program  Program By Using Escape Sequences. #include<stdio.h> #include<conio.h> voidmain() { clrscr(); printf("\n welcome \n\t to \n \n promac \n\t\t computers"); getch(); } Result    

Read More