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
Why enum is used in c?
What are the functions to open and close the file in c language?
What is a c token and types of c tokens?
What is modeling?
How can I find the modification date of a file?
What is a pragma?
What type is sizeof?
Explain what is the difference between functions getch() and getche()?
Are there namespaces in c?
how to make a scientific calculater ?
How are Structure passing and returning implemented by the complier?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is the scope of local variable in c?
Explain how can I remove the trailing spaces from a string?
How is a macro different from a function?