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

How do you prevent buffer overflows in C?

Answer Posted / nashiinformaticssolutions

• Use bounds checking while working with arrays.
• Use safer functions like snprintf() instead of sprintf().

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you add pointers together? Why would you?

1118


What is property type c?

1080


Explain what are the __date__ and __time__ preprocessor commands?

1111


Is fortran still used today?

1087


What is string function c?

1013


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1959


What is a structure member in c?

995


Why are algorithms important in c program?

1112


How can I check whether a file exists? I want to warn the user if a requested input file is missing.

1139


What is a list in c?

1027


What does calloc stand for?

1152


Is null always equal to 0(zero)?

1030


What is structure in c language?

1160


Can you write the algorithm for Queue?

2100


Write a C program to count the number of email on text

1908