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 / hussain reddy

hello

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the storage classes in C?

619


What are the types of data types and explain?

663


What is assert and when would I use it?

573


What does return 1 means in c?

577


What is s or c?

589






What are the types of c language?

549


Why is it important to memset a variable, immediately after allocating memory to it ?

1546


Explain main function in c?

616


Why is c faster?

588


How can I make sure that my program is the only one accessing a file?

672


Can we assign string to char pointer?

578


What is C language ?

1520


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1471


Why c is a procedural language?

576


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1895