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 / vrushali
The answer is bye...
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
In C language what is a 'dangling pointer'?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
what is the function of pragma directive in c?
What is assignment operator?
What is #line?
What is %s and %d in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is your stream meaning?
How can I find the modification date of a file?
What is anagram in c?
What language is windows 1.0 written?
Why is c fast?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is meant by recursion?
What is an lvalue?