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

WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

2081


What does s c mean on snapchat?

1116


What library is sizeof in c?

1093


Why doesnt this code work?

1069


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

1255


What is the difference between void main and main in c?

1157


how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12

1089


What is the size of a union variable?

1055


What is c basic?

1182


What is the purpose of main() function?

1256


Is fortran still used in 2018?

1043


What is the use of static variable in c?

1092


Explain what will the preprocessor do for a program?

1072


How do I get a null pointer in my programs?

1115


Why do we write return 0 in c?

1068