What is Lazy evaluation in C? Give an example.
How can a number be converted to a string?
How do you sort filenames in a directory?
Explain how can a program be made to print the line number where an error occurs?
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
what is d pitfalls of registers variables
what are bit fields? What is the use of bit fields in a structure declaration?
0 Answers Flextronics, TISL, Virtusa,
1,1,5,17,61,217,?,?.
What is volatile
What is the best way to store flag values in a program?
in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
how do you programme Carrier Sense Multiple Access