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...

Whats wrong with the following function

char *string()
{
char *text[20];
strcpy(text,"Hello world");
return text;
}

Answer Posted / qint

1. returning address of a local variable.
2. wrong parameter passed to strcpy()

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there any problems with performing mathematical operations on different variable types?

992


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

2275


Explain the difference between getch() and getche() in c?

937


What is a class c rental property?

1041


What are the different types of objects used in c?

972


Is there anything like an ifdef for typedefs?

1094


How can I change the size of the dynamically allocated array?

1092


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

1320


Is c object oriented?

911


What standard functions are available to manipulate strings?

1075


please send me the code for multiplying sparse matrix using c

2120


Tell us two differences between new () and malloc ()?

1116


Can you please explain the difference between exit() and _exit() function?

993


What do you mean by dynamic memory allocation in c? What functions are used?

1107


Explain the use of 'auto' keyword

1073