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 / madhureddy
the answer is bye
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
List the difference between a While & Do While loops?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
string reverse using recursion
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Can we access array using pointer in c language?
What is a const pointer in c?
What is 2c dna?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Dont ansi function prototypes render lint obsolete?
What does %p mean?
What is modifier & how many types of modifiers available in c?
How many types of functions are there in c?