Welcome Guest | Sign in | Register
Arrays - Discussion Page For Q.10415 | C Programming Questions and Answers | C Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Arrays > Questions and Answers

Q: What will be output when you will execute following C code?

char *someFun1()
{
char temp[ ] = “string";
return temp;
}
main()
{
puts(someFun1());
}
A. 6 B. string
C. Garbage values D. None of these

Answer and Explanation

Answer:Garbage values

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.