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 / subbu
after correction of error, the output will be hello
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
With the help of using classes, write a program to add two numbers.
What is the default value of local and global variables in c?
What is a lvalue
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
What does %c do in c?
How many levels of indirection in pointers can you have in a single declaration?
Why cant I open a file by its explicit path?
How do you determine a file’s attributes?
What type of function is main ()?
what does static variable mean?
What are the advantages and disadvantages of c language?
Explain what is the difference between null and nul?
What does the c in ctime mean?
Differentiate between a for loop and a while loop? What are it uses?
Explain what are reserved words?