- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
__func__ 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
- Related Articles
- Predefined Identifier __func__ in C
- What's the difference between __PRETTY_FUNCTION__, __FUNCTION__, __func__ in C/C++?
- What is an identifier in C language?
- Organizationally Unique Identifier
- JavaScript this Identifier
- What is an identifier and its rules in C language?
- Getting the unique identifier for the current managed thread in C#
- What are the rules about using an underscore in a C++ identifier?
- Order MySQL results without identifier?
- Difference Between Identifier and Variable
- Difference Between Keyword and Identifier
- What is a Virtual Circuit Identifier (VCID)?
- What are the principles of security identifier?
- Check whether the given string is a valid identifier in Python
- Determine if a String is a legal Java Identifier

Advertisements