Address of a function in C or C++ Last Updated : 20 May, 2018 Comments Improve Suggest changes Like Article Like Report We all know that code of every function resides in memory and so every function has an address like all others variables in the program. We can get the address of a function by just writing the function's name without parentheses. Please refer function pointer in C for details. Address of function main() is 004113C0 Address of function funct() is 00411104 In C/C++, name of a function can be used to find address of function. C // C program to addresses of a functions // using its name #include<stdio.h> void funct() { printf("GeeksforGeeks"); } int main(void) { printf("address of function main() is :%p\n", main); printf("address of function funct() is : %p\n", funct); return 0; } Output: address of function main() is :0x40053c address of function funct() is : 0x400526 Comment More infoAdvertise with us Next Article Address of a function in C or C++ A anksri991 Follow Improve Article Tags : Misc C Language Practice Tags : Misc Similar Reads How to Declare a Pointer to a Function? A pointer to a function is similar to a pointer to a variable. However, instead of pointing to a variable, it points to the address of a function. This allows the function to be called indirectly, which is useful in situations like callback functions or event-driven programming.In this article, we w 2 min read moveto() function in C The header file graphics.h contains moveto() function which changes the current position to (x, y) Syntax : void moveto(int x, int y); Examples : Input : x = 70, y = 40 Output : Input : x = 50, y = 80 Output : Below is the implementation of moveto() function: C // C Implementation for moveto() #incl 2 min read Function Pointer in C In C, a function pointer is a type of pointer that stores the address of a function, allowing functions to be passed as arguments and invoked dynamically. It is useful in techniques such as callback functions, event-driven programs, and polymorphism (a concept where a function or operator behaves di 6 min read log() Function in C++ The std::log() in C++ is a built-in function that is used to calculate the natural logarithm (base e) of a given number. The number can be of any data type i.e. int, double, float, long long. It is defined inside the <cmath> header file.In this article we will learn about how to use std::log() 1 min read User-Defined Function in C A user-defined function is a type of function in C language that is defined by the user himself to perform some specific task. It provides code reusability and modularity to our program. User-defined functions are different from built-in functions as their working is specified by the user and no hea 6 min read Like