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 / subbu
after correction of error, the output will be hello
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
define string ?
Explain that why C is procedural?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is default value of global variable in c?
What are the types of macro formats?
What is an arrays?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
List some applications of c programming language?
What is 2 d array in c?
What is the general form of #line preprocessor?
What is static and volatile in c?
Explain how can type-insensitive macros be created?
How can I split up a string into whitespace-separated fields?
provide an example of the Group by clause, when would you use this clause