- World's Largest Collection of Interview Questions
Interview Success Kit - 9,000 Interview Que. & Ans.
Covers 9,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Question :
Why should I prototype a function?
Category Functions in C Interview Questions
Rating (0.3) By 27 users
Added on 10/22/2004
Views 10042
Rate it!

A function prototype tells the compiler what kind of arguments a function is looking to receive and what
kind of return value a function is going to give back. This approach helps the compiler ensure that calls to a function are made correctly and that no erroneous type conversions are taking place.

Prototype of the function tell compiler that we will use this function in our program and it will run even if we do not write code of function



prototype of function tells compiler about function behaviour it means due to prototype compiler knows for things of function:-it is the identifier which is used to call a function
2.type of function:-it tells which type of value function will return of argument:-it tells how many arguments are reuired to call a funtion
4.types of argument:-it tells types of arguments which are passed to a function

Posted by: syed khursheed ahmed    

Contact syed khursheed ahmed Contact syed khursheed ahmed

a function protype calls the compilerand which argument recive and retun the value to given program

Posted by: aniket    

Contact aniket Contact aniket

the user defined function which we are going to use,is not aware to compiler so first we have to tell the behaviour of function to compiler. when complier executes function protype code, then compiler knows that there is a function of this type used in the program.

Posted by: Amol Patil    

Contact Amol Patil Contact Amol Patil

prototype of the function tell the compiler to recieve and return what type of data from the function at time of compilation and easy to identify the function.

Posted by: LAXMAN HONAWAD    


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

  • 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 a static function?
    View Answer
    Is using exit() the same as using return?
    View Answer
    Differentiate between a linker and linkage?
    View Answer
    What is a function and built-in function?
    View Answer
    What is an argument ? differentiate between formal arguments and actual arguments?
    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 - Best Freshers & Experienced Jobs Website.

    View ALL Functions in C Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2016, 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 Seconds