Answer Posted / nashiinformaticssolutions
memset() initializes memory to a specific value.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I read/write structures from/to data files?
How do we make a global variable accessible across files? Explain the extern keyword?
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 ].
Give the rules for variable declaration?
What is the difference between array and pointer?
What are extern variables in c?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
What is the size of structure pointer in c?
What is difference between union and structure in c?
Explain what is the general form of a c program?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is the Purpose of 'extern' keyword in a function declaration?
How can I find out how much free space is available on disk?
What is uint8 in c?
What is the difference between malloc calloc and realloc in c?