answersLogoWhite

0

user defined functions r d functions whch user declare before the main functn in c program...

for eg.

double min( doub;le x,double y);

int factorial( ,)

int square(int)

etc

User Avatar

Wiki User

16y ago

What else can I help you with?

Continue Learning about Engineering

Difference between user defined function or standard c library?

satandard fuction is pre define fuction like getch(),clrscr(), in c++ and userdefine fuction is self created by use to do a particular work ex of use definefuction int add(int a,int b) { int c; c=a+b; return(c); };


Write a program that defines a template function named add This function takes two arguments add two variables and then return the sum?

Write a program that defines a template function named add(). This function takes two arguments, add two variables and then return the sum. In main function, define two variables of type int, two variables of type float and two objects of type 'String'. Now call the add() function three times for these different data types. Note: String is a user-defined data type and for this you have to define a class named 'String'. When template function will be called to add two objects of type String then it must concatenate two strings. Your output should look like this: Sample Output: Enter two integer values to be added Enter First value: 12 Enter Second value: 25 Enter two float values to be added Enter First value: 13.5 Enter Second value: 14.2 Enter two Strings to be added Enter First value: Virtual Enter Second value: University Addition of two variables of different data types Sum of values of type int = 37 Sum of values of type float = 27.7 Sum of values of type String = VirtualUniversity


What is return keyword in c?

return lets you literally return a value from a function. This allows you to define functions like: int add(int x, int y) { return(x + y); } int twoplustwo = add(2, 2);


What is meant by a function returning a value in c?

Consider this example:#include int add(int x, int y){ int n=x+y;return n; }int main(){ Using namespace std;cin >> x;cin >> y;cout


What is prototyping in c plus plus?

A prototype in C++, as well as in C, is a declaration of a function and its parameters, including the types of the function and parameters. It does not actually create (define) the code for the function - it only identifies (declares) it to the compiler. It is used to enforce type checking for functions and parameters, and it is used to declare the function for use in other code prior to the function actually being defined, such as in a different compilation unit or library. Headers, for instance, contain mostly prototypes.

Related Questions

How do you add a user define function to library file?

Create an object module (WinDos: *.obj, unix: *.o), then use the platform-specific librarian program (WinDos: lib.exe, unix: ar, libtool)


Difference between user defined function or standard c library?

satandard fuction is pre define fuction like getch(),clrscr(), in c++ and userdefine fuction is self created by use to do a particular work ex of use definefuction int add(int a,int b) { int c; c=a+b; return(c); };


Is Minecraft on steam?

No, but there is a steam function to add non steam games on to your library.


What does ADD mean on a spreadsheet?

There's no in-built function called "ADD"; "SUM" is usually used instead. If you have this in a formula, it is either a user-defined function or name, or it is simply text.


To add a row of cells quickly click on the located in the Function Library group?

Insert | Insert Sheet Rows


What are four ways to add a function to a formula?

Type the formula directly in the cell or the formula. Use formula AutoComplete. Select a function from the Function Library group, or click the Insert Function button to select a function from the Insert Function dialog. Use AutoSum


How can a system administrator add a Samba password for a new user?

For a system administrator to add a Samba password for a new user, they have to first add the new user name, then the new user password via commands. To add the username, add the command line, "adducer (name)" or "# user add (name)." Once they have their account, the administrator can add the command line, "# smbpasswd -a (name)".


How do you stop double logging in using PHP and MySQL?

Assuming you are using a User database and sessions, simply add a Session key. Auto generate this key as follows: $newsession_key = SHA1( RAND(100000000,999999999)); Enter this in the database on the user row when logging in and store it in a session and in the database. Then on your code where you define the user logged in status you add something like: $database_session = $DATABASE['sessionkey']; If($database_session != $_SESSION['sessionkey']){ Unset($_SESSION['username'],$_SESSION['password'],$_SESSION['sessionkey']); #A* } A* Add in any sessions you use to keep the user logged in.


What is the features of the software Music Oasis?

Music Oasis allows the user to download any song from their library to play on almost any format including MP3 or any other music player. The user can also add photos and notes.


How can I add a user to a Jira project?

To add a user to a Jira project, you need to have the necessary permissions. Go to the project settings, select "Users and roles," then click on "Add user" and enter the user's details. Make sure to assign the appropriate role to the user for the project.


add me on roblox my user is jackson888767?

ok i will add you


How can I add a user to my credit card account?

To add a user to your credit card account, contact your credit card issuer and request to add an authorized user. They will guide you through the process and may require the new user's personal information and consent.