f(*p)
{
p=(char *)malloc(6);
p="hello";
return;
}
main()
{
char *p="bye";
f(p);
printf("%s",p);
}
what is the o/p?

Answer Posted / madhureddy

the answer is bye

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is time complexity c?

560


In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1372


Explain how can I convert a number to a string?

636


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

613


Why main is not a keyword in c?

639






What is null in c?

594


What is local and global variable in c?

610


How to find a missed value, if you want to store 100 values in a 99 sized array?

806


What are data structures in c and how to use them?

664


What is the meaning of c in c language?

590


4. main() { int c=- -2; printf("c=%d",c); }

1362


Why we use conio h in c?

580


Is it better to bitshift a value than to multiply by 2?

649


Why is c called a mid-level programming language?

718


How reliable are floating-point comparisons?

621