Whats wrong with the following function
char *string()
{
char *text[20];
strcpy(text,"Hello world");
return text;
}
Answer Posted / qint
1. returning address of a local variable.
2. wrong parameter passed to strcpy()
Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
What is %d called in c?
When can a far pointer be used?
Does c have class?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
praagnovation
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Explain what is the benefit of using const for declaring constants?
What does double pointer mean in c?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
what will be the output for the following main() { printf("hi" "hello"); }
in iso what are the common technological language?
Is it cc or c in a letter?
How is a structure member accessed?
what type of questions arrive in interview over c programming?
Why is C language being considered a middle level language?