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 / abhisheksingh462

Answer is "second string" because both handle same address

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between functions getch() and getche().

1107


What does emoji p mean?

1201


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1167


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2367


Is c is a high level language?

1252


Which are low level languages?

1147


Explain what are multidimensional arrays?

1122


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3371


What is a file descriptor in c?

1196


What is volatile variable in c?

1155


What is pointer to pointer in c with example?

1154


Explain what is wrong in this statement?

1178


What is a char in c?

1038


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1444


Write a code of a general series where the next element is the sum of last k terms.

1092