How to avoid buffer overflow?
Answer / nashiinformaticssolutions
Use bounds-checking functions like fgets() instead of unsafe functions like gets().
| Is This Answer Correct ? | 0 Yes | 0 No |
What is typedef?
what is difference between #include<stdio.h> and #include"stdio.h"
Explain pointer. What are function pointers in C?
What is meant by high-order and low-order bytes?
Is c pass by value or reference?
Write a program for Overriding.
which type of question asked from c / c++ in interview.
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain the difference between getch() and getche() in c?
Write the following function in C. stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
void main() { int s[4][2]={ {1234,56},{1212,33},{1434,80},{1312,78} }; int (*p)[2]; int i,j,*pint; for(i=0;i<=3;i++) { p=&s[i]; pint=p; printf("\n"); for(j=0;j<=1;j++) printf("%d",*(pint+j)); } } while running this program it shows a warning-suspicious pointer conversion ie pint=p; my que is why should we assign the value of p to pint again.why cant we use it directly as *(p+j)..but if i use like tat the o/p is garbage value..
write a program to swap Two numbers without using temp variable.
75 Answers EMC, Focus, GreyB, HCL, Hitech, HP, Huawei, Infosys, Mannar Company, Microsoft, Miles Software, Odessa Technologies, Satyam, TCS, Wipro,