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 / vignesh1988i
bye
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Write a program to swap two numbers without using a temporary variable?
How can I insert or delete a line (or record) in the middle of a file?
Write a program to implement queue.
Explain how can I avoid the abort, retry, fail messages?
What are the salient features of c languages?
Why calloc is better than malloc?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is a pointer and how it is initialized?
What do you mean by Recursion Function?
How to write c functions that modify head pointer of a linked list?
What do you mean by a local block?
In c language can we compile a program without main() function?
What do you know about the use of bit field?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.