A PHP Error was encountered

Severity: Warning

Message: fopen(/var/cpanel/php/sessions/ea-php56/PHPSESSID9eft7flk7up204ll677f9pbk27qjpih0): failed to open stream: No space left on device

Filename: drivers/Session_files_driver.php

Line Number: 174

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cookie - headers already sent by (output started at /home/nerd/public_html/system/core/Exceptions.php:271)

Filename: Session/Session.php

Line Number: 144

A PHP Error was encountered

Severity: Warning

Message: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/nerd/public_html/system/core/Exceptions.php:271)

Filename: Session/Session.php

Line Number: 144

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/nerd/public_html/system/core/Exceptions.php:271)

Filename: controllers/Questions.php

Line Number: 268

Print the current function name by using __func__ in C | C preprocessor programs
Q:

Print the current function name by using __func__ in C | C preprocessor programs

0

Print the current function name by using __func__ in C | C preprocessor programs

Macro: __func__

__func__ is the predefine macro, and it is used to get the name of the current function. This macro is added in C99.

 

All Answers

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/nerd/public_html/system/core/Exceptions.php:271)

Filename: questions/question_for_visitors.php

Line Number: 568

need an explanation for this answer? contact us directly to get an explanation for this answer

Example:

#include <stdio.h>

//fun1
void fun1(void){
	printf("Called function is: %s\n",__func__);
}

//fun2
void fun2(void){
	printf("Called function is: %s\n",__func__);
}

//Main code
int main(){
	
	printf("Called function is: %s\n",__func__);
	//function callings
	printf("Now,calling the functions...\n");
	fun1();
	fun2();
	
	return 0;	
}

Output

    Called function is: main
    Now,calling the functions...
    Called function is: fun1
    Called function is: fun2

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now

A PHP Error was encountered

Severity: Warning

Message: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/cpanel/php/sessions/ea-php56)

Filename: Unknown

Line Number: 0