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

How can variables be characterized?

0 Answers  


What is macro?

5 Answers   IBM,


how can we Declare a variable in c without defining it.

1 Answers   TCS,


is it possible to change the default calling convention in c ?

1 Answers   Aptech,


How to access or modify the const variable in c ?

16 Answers   HCL, HP,


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

0 Answers  


When is a null pointer used?

0 Answers  


What is string in c language?

0 Answers  


IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.

5 Answers   TCS,


how can i get the string which is having two spaces at the end.suppose the string is "Hello World ".Now at the end i have two spaces.i need to print with that spaces .

1 Answers  


pierrot's divisor program using c or c++ code

0 Answers  


What's a "sequence point"?

3 Answers  


Categories