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 |
What are structure members?
which of the following statements is incorrect a.typedef struct new{ int n1; char n2; } DATA; b.typedef struct { int n3; char *n4; }ICE; c.typedef union { int n5; float n6; } UDT; d.#typedef union { int n7; float n8; } TUDAT;
Is javascript based on c?
Difference between linking and loading?
can we write a program in c for printf and scanf without using header file stdio.h
How can I make sure that my program is the only one accessing a file?
wht is the difference between KPO and BPO ?
2 Answers Accenture, BPO, HCK, HCL, Infosys,
How are pointers declared in c?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
How is pointer initialized in c?
Explain what is the difference between a string and an array?
union { char ch[10]; short s; }test; test.s = 0xabcd; main() { printf("%d",ch[10]); }