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 are the advantages and disadvantages of a heap?

1147


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

1882


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1171


Linked lists -- can you tell me how to check whether a linked list is circular?

1031


When do we get logical errors?

1072


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1034


What is clrscr in c?

1073


What is oops c?

1115


Explain what are header files and explain what are its uses in c programming?

1109


What is restrict keyword in c?

1049


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

1319


Are bit fields portable?

1108


What does %d do in c?

910


What is table lookup in c?

1033


What are the differences between new and malloc in C?

1071