What will be the result of the following program?char*g(){static charx[1024];return x;}main(){char*g1="FirstString";strcpy(g(),g1);g1=g();strcpy(g1,"SecondString");printf("Answeris:%s", g());}A. Answer is: First StringB. Answer is: Second StringC. Run time Error/Core DumpD. None of these

Showing Answers 1 - 1 of 1 Answers

rengasamy

  • Apr 18th, 2006
 

 Answer is

    Second String

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions