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

out of fgets() and gets()which function is safe to use and
why in c language?

Answer Posted / pragati priya

The function fgets() function is safer to use. It checks the
bounds, i.e., the size of the buffer and does not cause
overflow on the stack to occur. gets() does not check the
bounds.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

synchronous and asynchronous transmission

1949


In HSE what is Lost time accident? why it is to be reported within 48 hrs to gov.authorities ?

1884


Can a Student without engineering background appear for GRE means If he did Bachelor of science in Information technology i.e BSc(IT).

2003


how can determine grounded motor when it alarm at 440volt

2155


Implement the dictionary operations INSERT, DELETE, and SEARCH using singly linked, circular lists. What are the running times of your procedures?

5487


what is recursion in c language?

2018


What is meant by STL?

2745


pls send me the e-book for verbal and non verbal reasoning of R S aggarwall

2286


Are bridges more stable on concrete or on soil - why?

1452


how to make resume and what should I include in it?

2248


searching a B-tree indexed tree compared to B+ tree is slow..True or false

2313


what is different between static block and public static void main??

1926


A company canteen needs an automated system for its food and beverage management. The canteen receives food and beverage items from different distributors. All the non perishable items are stored in the store-room and the perishable items are put in the fridge. The manager should be able to add, delete or update food and beverage items onto the system and perishable and non perishable item details are to be stored separately. Both waiters and the cooks should be able to update the perishable items, but only the cooks should be allowed to update the non perishable items. Both cooks and waiters are not allowed to add or delete any items that are entered. identify the Schema, Table , Fields

3248


what is a query for divide a table into two subtable?

2103


when load increase in generator in island mode, why turbine rpm is reduced

3589