Problem 1097 - what's the output
char *xyz(){
char str[32];
strcpy(str,"Hello there!");
return(str);
}
void main()
{
char tt[32];
char *st = xyz();
int i;
for (i = 0; i < 32; i++)
tt[i] = st[i];
printf("%s", tt);
}
Problem 1097 - what's the output
char *xyz()Submitted by (ilduderino) on July 28 2010   |   Discuss
Welcome to Project Eureka!
Project Eureka is a collaboratively edited site for problem solvers/creators - regardless of problem or field.
We are a bunch of math enthusiasts who decided to create a website for submitting and solving problems.
However, project Eureka is not limited to math problems; any problem, puzzle, or trivia question can be submitted to project Eureka.
Similarly, for people who prepare for various tests, project Eureka offers the possibility of grouping multiple problems in a test and simulate a standardized test environment.