Explain the function prototype - computer programming, C/C++ Programming

Assignment Help:

Explain the Function Prototype?

The Functions must be declared before they are used, ANSI C provides for the new function declaration syntax called as the function prototype, a function prototype tells the compiler the number and type of arguments that are to be passed to the function and the type of the value that is to be returned by the function.

An illustration is

double sqrt(double);

This tells the compiler that sqrt() is a function that acquire a single argument of type double and returns a double. The universal form of function prototype

type function_name(parameter type list);


Related Discussions:- Explain the function prototype - computer programming

Arrays, how to declare multi dimensional array

how to declare multi dimensional array

Arrays, Write two different arrays. Store the names in it and then compare ...

Write two different arrays. Store the names in it and then compare if both the names entered by the user are the same.

Hotel booking, Construct a console program to manage the booking of a Hotel...

Construct a console program to manage the booking of a Hotel room.

Blackjack Game help, I can''t figure out how to stop the programming from h...

I can''t figure out how to stop the programming from hitting for the player even when they type in stand.

Asdas, Ask question #Miniasdasmum 100 words accepted#

Ask question #Miniasdasmum 100 words accepted#

Explain zero based addressing, Explain zero based addressing. - Array s...

Explain zero based addressing. - Array subscripts always start at zero. - These subscript values are used to identify elements in the array. - As subscripts start at 0, a

Explain static class members, Static Class Members As we already know a...

Static Class Members As we already know all the objects of the class have dissimilar data members but invoke the similar member functions. Though, there is an exception to this

How do you access the values within an array, How do you access the values ...

How do you access the values within an array? - Arrays comprise a number of elements, which depends on the size you assigned it during variable declaration. - Every element

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd