Answer Posted / e
(.) is the period operator
| Is This Answer Correct ? | 24 Yes | 2 No |
Post New Answer View All Answers
What are the different file extensions involved when programming in C?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Why is sprintf unsafe?
How can I send mail from within a c program?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Explain what is the stack?
Under what circumstances does a name clash occur?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Explain pointers in c programming?
What do you mean by a sequential access file?
How can I dynamically allocate arrays?
How many levels of pointers can you have?
Explain how can a program be made to print the line number where an error occurs?
Explain 'bus error'?