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
What are the storage classes in C?
What are the types of data types and explain?
What is assert and when would I use it?
What does return 1 means in c?
What is s or c?
What are the types of c language?
Why is it important to memset a variable, immediately after allocating memory to it ?
Explain main function in c?
Why is c faster?
How can I make sure that my program is the only one accessing a file?
Can we assign string to char pointer?
What is C language ?
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.
Why c is a procedural language?
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 .