answersLogoWhite

0

Define functions in c

User Avatar

Anonymous

17y ago
Updated: 8/16/2019

type function_name (type1 arg,...)

{

//function body

}

void finc(int arg0)

{

cout << "You entered: " << arg0;

}

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

Can functions be defined in C structures?

No, all functions must be defined outside of C structures. However, all functions in C have a type (the return type) and an identity (an address), so you can define function pointers as members of a structure to achieve the same end.


What is the user defined function section in C language?

There are no 'sections' in C source, you can define functions anywhere, except inside another function or variable/type definition.


What are some of the benefits of programming in C Sharp?

There are many advantages to C sharp programming like: Not having to define the Headers (.h), Classes can be defined within classes, classes and functions can be defined in random order unlike C and C++, Classes and functions don't need to be declared in the program.


What are the functions of a c processor?

The preprocessor handles directives for source file inclusion (#include), macro definitions (#define), and conditional inclusion (#if).


Is it possible to define new functions with the same name as standard library functions?

Yes, it is possible to define new functions with the same name as standard library functions in most programming languages, including C and C++. However, this can lead to name collisions and ambiguity, making it difficult for the compiler to determine which function to use. To avoid such issues, it's a good practice to use unique names or namespaces. Additionally, overriding standard library functions can lead to unexpected behavior and should be done with caution.


Can an extern function be defined in a C header file?

Declared is the right word. (Don't define functions in headers, unless you really know what you are doing.)


What is the use of define key word in c?

Actually, the preprocessor is not part of the C compiler, but here you are: #define is meant to define symbols. Examples #define NULL ((void *)0) #define getchar() getc(stdin)


Define class string and implement all the functions related to strings?

define class string


Which class is used to define the controls in c sharp?

.Ascx class file is used to define the controls in c#


In C can functions be defined inside functions?

Standard C (C89 and C99 are the official standards) does not allow to define functions inside functions (known as nestedfunctions). However, some compilers, such as the free GCC allow nested functions as a language extension.


Can there be friend functions in c plus plus?

Yes, there can be friend functions in C++.


What are the in-built function in c plus plus?

C++ built-in functions are those functions that are provided for you as part of the language itself, and includes all of the C standard library functions (all of which were inherited from C) and is expanded upon by the C++ standard template library. C++ implementors may provide additional functions that are platform-specific, however these are not considered built-in functions becuase C++ is a cross-platform language. These are best described as 3rd party functions. The functions you yourself write are known as user-defined functions.

Trending Questions
What is Richard Polt's final assessment of reductionism? How will role of advertising differ when the product involved is a consumer packaged product instead of a consumer durable? Was John smith a abolitionist? Can you give me a guide question in idiomatic expressions? Who are the 3 famous piano composers? How do you write 2.29 as a percentage? What is the number 3699999999999999 in word form? Is Supply and demand the same as supply exceeds demand? Why are the words mother and father considered dirty words in the brave new world? What is the longest sentence in a the book A Christmas Carol? Where can you ask the registry number of your SSS check in post office? What does Identifying stressors often involves looking for? You are nine weeks pregnant and have been experiencing light bleeding for the past three days No cramping though but you are a little worried what should I do and does this mean that I have miscarried? What is the total number of spots on a six- sided regular die? What is the chemical formula of uranium yellow cake? How do you remove Haworth file drawer slides? What is the sum of two numbers is 75 The second number is 3 less than twice the first Find the numbers? If a multiple-choice question has five answer choices and you submit one wrong answer before getting the question correct how much credit will you lose for that part of the question? How do you create a contact sheet in GIMP? How do you read the expiration date on Chi-Chi's medium salsa?