CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS C FUNCTIONS IN C DETAILS
    Question :
    What is an argument ? differentiate between formal arguments and actual arguments?
    Category Functions in C Interview Questions
    Rating (0.4) By 1711 users
    Added on 10/22/2004
    Views 6571
    Rate it!
    Answers:

    An argument is an entity used to pass the data from calling function to the called function. Formal arguments are the arguments available in the function definition.They are preceded by their own data types.Actual arguments are available in the function call.



    arguments are called as parameters .they are
    passed from main function to sub function.

    formal arguments are located in sub function.
    actual arguments are located in function
    the values of actual arguments
    are copied to formal arguments.



    Posted by: raja    

    Contact raja Contact raja

    The arguments listed in function definition are known as formal arguments. And the arguments passed to function while invoking it, are known as actual arguments.

    For e.g:
    -----------
    int foo(int a, int b)
    {
    return (a+b);
    }

    int main(void)
    {
    int var1 = 10, var2 = 10;
    int result;
    result = foo(var1, var2);
    return 0;
    }

    in the above case, var1 & var2 are actual arguments and "a" and "b" are formal arguments.



    Posted by: Ravi A Joshi    

    Contact Ravi A Joshi Contact Ravi A Joshi

    Argument is a parameter which is used to pass into function during function call

    Actual argument is a parameter which is available in calling function

    Formal argument is a parameter which is available in called function/function definition

    Both actual and formal argument must be same which is declared before main

    VENKATGOPU



    Posted by: VENKATGOPU    

    Contact VENKATGOPU Contact VENKATGOPU

    Actual parameters are available in main function. Formal parameters are those which we formally define in a sub function which is to be called. The number of actual and formal parameters in a particular program must be the same.



    Posted by: yasar    

    Contact yasar Contact yasar

    formal arguments are the argument available in the function definition
    actual areguments are available in function call
    formal areguments are located in sub fuction
    actual arement aren located in function



    Posted by: Hitesh    

    Contact Hitesh Contact Hitesh

    formal arguments are the argument available in the function definition
    actual areguments are available in function call
    formal areguments are located in sub fuction
    actual arement aren located in function



    Posted by: Ashish Tomar    

    Contact Ashish Tomar Contact Ashish Tomar

    formal arguments are the argument available in the function definition.
    actual arguments are available in function call.
    formal arguments are located in sub function.
    actual arguments are located in function.



    Posted by: Ramkrishna mandal    

    Contact Ramkrishna mandal Contact Ramkrishna mandal

    formal arguments are the argument available in the function definition.
    actual arguments are available in function call.
    formal arguments are located in sub function.
    actual arguments are located in function.



    Posted by: PRASANTH    

    Contact PRASANTH Contact PRASANTH

    Whenever a function gets called by a set of arguments they are known as actual arguments.
    The arguments that represents the name of data items that are transferred into the function from calling function are known as formal arguments.



    Posted by: Nitin wadhwa    

    Contact Nitin wadhwa Contact Nitin wadhwa

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    What is the purpose of main( ) function?
    View Answer
    What are the advantages of the functions?
    View Answer
    What is a method?
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Functions in C Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 0.03125 Seconds