
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Function Identifier in C
Here we will see what is the __func__ C.
Basically the __func__ or __FUNCTION__ (Some old versions of C and C+ + supports __func__). This macro is used to get the name of the current function.
Example
#include<stdio.h> void TestFunction(){ printf("Output of __func__ is: %s\n", __func__ ); } main() { printf("Output of __func__ is: %s\n", __func__ ); TestFunction(); }
Output
Output of __func__ is: main Output of __func__ is: TestFunction
Advertisements