How do you prevent buffer overflows in C?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• Use bounds checking while working with arrays.
• Use safer functions like snprintf() instead of sprintf().
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• Use bounds checking while working with arrays.
• Use safer functions like snprintf() instead of sprintf().
| Is This Answer Correct ? | 0 Yes | 0 No |
nic scientist exam
print ur name without using any semicolon in c/c++....
21 Answers Bosch, TCS, Wipro,
what is difference between strcmp & palindrome?
What is non linear data structure in c?
Write a program in C to print the alphabets in order as on a mobile phone.i.e:When 2 is pressed once 'a' prints and if it is pressed two times 'b' prints and so on.we have to print all the alphabets as on mobile phone like this.
Program to display given 3 integers in ascending order
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
WHAT IS PRE POSSESSORS?
What is atoi and atof in c?
How do you do dynamic memory allocation in C applications?
Hai what is the different types of versions and their differences