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

What is use of bit field?

1281


What does a function declared as pascal do differently?

1112


write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list

2794


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1208


Explain how to reverse singly link list.

1125


write a c program in such a way that if we enter the today date the output should be next day's date.

2184


What are the differences between new and malloc in C?

1128


Explain threaded binary trees?

1142


Can we increase size of array in c?

957


how to construct a simulator keeping the logical boolean gates in c

2247


Explain what is meant by high-order and low-order bytes?

1038


Place the #include statement must be written in the program?

1020


Tell me what is null pointer in c?

1060


What is the condition that is applied with ?: Operator?

1120


Tell me what are bitwise shift operators?

1124