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 |
Can you think of a logic behind the game minesweeper.
Print all numbers which has a certain digit in a certain position eg: number=45687 1 number=4 2 number=5 etc
What are the usage of pointer in c?
write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)
1 Answers Bosch, College School Exams Tests,
There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?
write an algorithm and c program to add two 2x2 matrics
What is structure in c language?
write the program to find multiplication of 2-D matrix??????????
write a program for fibonaci series by using while loop in c?
write a program to display all prime numbers
How can I increase the allowable number of simultaneously open files?
Is sizeof a keyword in c?