Skip to main content

Posts

Showing posts from August, 2020
To Get All Information of Sarkari Jobs | Results | Admit Card | And courses ,Internships then CLICK HERE

Nesting Of Function

  C Permit Nesting Of Function Freely,In Nesting Of Function One Function Can Call Another Function, Which In Term Can Call Another Function.There Is No Limit On How Deeply Function Can be Nested. The Order In Which Function Are Define In A Program And Order In Which They Get Called Need Not Necessary Be Same. Img Credit: Google Images Example -: #include<stdio.h> #include<conio.h> main() {printf("\n Hello,This Is Main"); fun1(); printf("\n Hello,We Are Back In Main"); getch(); } fun1(); {printf("\n Hello,This Is fun1");  fun2(); printf("\n Hello, We Are Back In  fun1"); } fun2(); {printf("\n Hello,This Is fun2"); } <?php // Check if the form is submitted if ($_SERVER["REQUEST_METHOD"] == "POST") {     $errors = array();     // Validate First Name (must be at least 3 characters long)     if (isset($_POST['first_name'])) {         $first_name = $_POST['first_name'];         if (strlen($f...

Local Variable And Global Variable

 Local Variable And Global Variable The variable declared within the body of the function are called local variable ,such variable can only be used within the body of function,within which they are created. They are created,when the function is called and destroy automatically when the function exit,We may also use the keyword "auto" to declare automatic variable explicitly. One important feature of automatic variable that,there value cannot be change in other functions of same program.This assure that we may declare and use the same variable name in different function in the same program without causing any confusing to the compiler. The variable declared outside of all the function usually before the main() function,are called global variable .Such variable can be used any where in the entire program. Local variable have higher precedence then global variable,If we have two variable of same name,one is local and another is global ,then local variable have higher precedenc...

Actual Argument And Formal Argument-:

Actual argument/Actual Parameter are those argument whose value are transferred to the function at the time of its calling and actual argument may be constant,variable or an expression. Formal Argument  /Formal Parameter are those argument which receives the value of actual argument. The data type,order,counting of actual and formal argument should match existingly. img credit: Google images Example -: #include<stdio.h> #include<conio.h> int sum_value(int,int) main() {int a=0,b=0,s=0; printf("Enter The Value Of a And b \n "); scanf("%d %d",&a,&b); s=sum_value(a,b);            /* Actual Argument */ printf("%d sum=%d",s); getch(); } int sum_value(int a,int b)    /* Formal Argument * / {s=0;   s=a+b;   return s; } Output -: Enter The Value Of a And b 10 5 sum=15

Download The Book "Let Us C" By Yashavant P.Kanetkar,Click The Below Button

-->Email Subscription

Enter Your Email Address:-

Delivered by FeedBurner

Copyright © 2020 TechProgramiz|All Right Reserved|Made By-: Sudarshan Pandey