CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.
Get Your Dream Job Now - www.vyoms.com
Sponsored Links
Interview Questions
Our Services

INTERVIEW QUESTIONS C FUNCTIONS IN C DETAILS
Question :
Why should I prototype a function?
Category Functions in C Interview Questions
Rating (4.0) By 27 users
Added on 10/22/2009
Views 10055
Rate it!
Answers:

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



Posted by: MUHAMMAD AAMIR SAYEED

Contact MUHAMMAD AAMIR SAYEED Contact MUHAMMAD AAMIR SAYEED

prototype of function tells compiler about function behaviour it means due to prototype compiler knows for things
1.name 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
3.no 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

Contact LAXMAN HONAWAD Contact 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 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 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 Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Functions in C Interview Questions & Answers

    User Options
    Latest 20 Questions
    What are the disadvantages of profitability index?
    What are the advantages of profitability index?
    What is the decision rule for profitability index?
    What is profitability index?
    Compare NPV and IRR method.
    State the demerits of internal rate of return method.
    State the merits of internal rate of return method.
    What is internal rate of return?
    State the demerits of Net Present Value method.
    State the merits of net present value method.
    What is the accept or reject criterion for net present value method.
    What are the steps involved in net present value method?
    state the demerits of accounting rate of return method.
    State the merits of accounting rate of return method.
    What is the accept or reject criterion for accounting rate of return method?
    What is accounting rate of return method?
    What is the accept or reject criterion for payback period?
    State the demerits of post payback profitability method.
    What are the merits of post- payback profitability method?
    What is post- payback profitability method and also state the formula for calculating payback period under this method.



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

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

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




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



    Cache = 0 Seconds