answersLogoWhite

0

It can be done via its address, for example:

void function (void (*callback)(void))

{

(*callback)();

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the use of function in c?

using function we can call the function in the program any where. by using functions we can reduce the code redundancy


How a program in c that will add 2 numbers without using any operator?

Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call


How do you call script code in javascript without using onclick?

function blahblah () { //do something } blahblah();


Where is the fuction call of main function?

The main function is the entry point into a program. When the Operating System launches the program the main function gets executed.


How do you call an external function or program that is written in different programming language?

It doesn't matter what language the external program or function was written in since all executables must be converted to machine code. To execute an external function, that function must reside in a library to which your program is linked and you must know the prototype of the function you intend to call. This is usually found in the library header file which can simply be included in your program. You can then call the external function just as you would an internal function. To execute a specific function in another program, however, you must use the command line interface for that program.


How you write a c program for making a call in gcc?

int main() { // Call the printf function printf("This is a function call!\n"); return 0; }


How do you accept a string by using getch() function with an example?

explain about function call


How is a procedure identified as near or far?

The far procedure is used at the place where the function call is given in main program and function definition is given in sub program....


What is dfference between synchronization and asynchronization?

I believe you mean synchronous and asynchronous... as in calling a function synchronously or asynchronously. When you call a function synchronously, the program waits for the function to finish before continuing on... i = i + 1 DoSomething() j = j + 1 <---- j wouldn't be changed until DoSomething finished When you call a function asynchronously, the program spawns another thread to run the function and continues on without waiting for the function to finish... Thread t i = i + 1 t.Start ( DoSomething ) j = j + 1 <---- j be changed just after DoSomething started


What is a call in programming and how does it function within the context of software development?

In programming, a call refers to invoking a function or method to perform a specific task within a program. When a call is made, the program transfers control to the function being called, executes the code within that function, and then returns control back to the point in the program where the call was made. Calls are essential in software development as they allow for code reusability, organization, and modularization, making it easier to manage and maintain complex programs.


How do you write a program that will call a function to multiply 4 numbers and return the answer to main program?

In Windows, use notepad.exe; in linux, use program xedit.


Can you swap two numbers by call by reference outside the function?

The using of term 'call-by-reference' implies function-call, so please rethink your question...