Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What will be the result of the following program?
char*g()
{
static char x[1024];
return x;
}
main()
{
char*g1="First String";
strcpy(g(),g1);
g1=g();
strcpy(g1,"Second String");
printf("Answer is:%s", g());
}
(A) Answer is: First String (B) Answer is: Second String
(C) Run time Error/Core Dump (D) None of these

Answer Posted / kalyan chukka

The Answer is Second String

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by initialization and how we initialize a variable?

1092


When should volatile modifier be used?

1071


What is boolean in c?

1150


Give me the code of in-order recursive and non-recursive.

1421


Is main a keyword in c?

1182


What is abstract data structure in c?

1108


How can you increase the size of a dynamically allocated array?

1231


What is the difference between #include

and #include “header file”?

1081


How can you read a directory in a C program?

1182


Can you assign a different address to an array tag?

1211


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

2091


Explain how can I manipulate strings of multibyte characters?

1255


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1109


How can I get back to the interactive keyboard if stdin is redirected?

1233


Can math operations be performed on a void pointer?

1102