Q:

what will be the output of the following program

0

what will be the output of the following program

#include "stdio.h"
char * f();
char a = 'a';

int main(int argc, char *argv[])
{ 
char *temp = f();
printf("%s", temp);
return 0;
}

char *f()
{ return &a;
}

  1. a
  2. \"a\"
  3. Compilation Error
  4. None of the these

All Answers

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

Correct Answer:

a

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

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
what will be the output of the following program:... >>
<< correct syntax to declare a 3 dimensional array us...