Question
What will be the result of the following program ?
char *gxxx()
{static char xxx[1024];
return xxx;
}
main()
{char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is : %s",gxxx());
}
a) The string is : string

b) The string is :Oldstring

c) Run time error/Core dump

d) Syntax error during compilation

e) None of these






Search
Can you Answer!!
  • Q Expand RSS
  • Q What was the original name of "NurJahan Beghum"?
  • Q Have you been in a situation where you didn't have enough work to do?
  • Q   Explain what is the use of property element syntax?
  • Q The Pickling Line Process is associated with the manufacturing of _____?
  • Q Describe binary tree and its property?
  • Q Name the act passes in march 1919 which authorized the govt to imprison any person without trial?
  • Q In EIGRP; what is a feasible successor (FS) and where is it stored? A. A FS is a primary route, stored in the routing table B. A FS is a backup route, stored in the routing table C. A FS is a backup route, stored in the topology table D. A FS is a primary route, stored in the topology table E. None of the above
  • Q Explain the floral formula of Haemodoraceae ?
  • Q Explain discounted cash flow?
  • Q How to query a string contains %?