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 |
How can you tell whether a program was compiled using c versus c++?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
main() {char a[10]={1,2,3,4,5,6};int x; for(x=0;x<4;x++){ b[x]=x+'a';} printf("%s",b);}
What are the 5 organizational structures?
Why can't I perform arithmetic on a void* pointer?
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?
What is double pointer?
swap 2 numbers without using third variable?
class foo { public: static int func(const char*& p) const; }; This is illegal, why?
Explain setjmp()?
How do you access command-line arguments?
How will you allocate memory to a double pointer ?