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

nic scientist exam

1 Answers   NIC,


why we use pointer in c

7 Answers   HCL, TCS,


2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

5 Answers   TCS,


Why main is used in c?

0 Answers  


What is the difference between #include and #include 'file' ?

0 Answers  






plz let me know how to become a telecom protocol tester. thank you.

0 Answers  


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


Is it acceptable to declare/define a variable in a c header?

0 Answers  


how we can say java is platform independent, while we require JVM for that particular Operating System?

3 Answers   Honeywell, TCS,


without a terminator how can we print a message in a printf () function.

7 Answers   NIIT,


What is dynamic variable in c?

0 Answers  


int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

4 Answers   TCS,


Categories