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
What is time complexity c?
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Explain how can I convert a number to a string?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Why main is not a keyword in c?
What is null in c?
What is local and global variable in c?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What are data structures in c and how to use them?
What is the meaning of c in c language?
4. main() { int c=- -2; printf("c=%d",c); }
Why we use conio h in c?
Is it better to bitshift a value than to multiply by 2?
Why is c called a mid-level programming language?
How reliable are floating-point comparisons?