What are the output(s) for the following ?
#include
char *f()
{char *s=malloc(8);
strcpy(s,"goodbye")}
main()
{
char *f();
printf("%c",*f()='A');
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

is it possible to create your own header files?

0 Answers  


What are the rules for the identifier?

0 Answers  


Is c easier than java?

0 Answers  


What are the uses of null pointers?

0 Answers  


program for reversing a selected line word by word when multiple lines are given without using strrev

0 Answers   IBM,






What is the value of c?

0 Answers  


How can variables be characterized?

0 Answers  


How can I direct output to the printer?

0 Answers  


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

0 Answers   Wilco,


In which area global, external variables are stored?

3 Answers  


void main() { int i=5; printf("%d",i+++++i); }

17 Answers   ME,


What is meant by keywords in c?

0 Answers  


Categories