Answer Posted / ada
Head file should not contain defining instances of global
variables and function bodies.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the advantages and disadvantages of pointers?
What is static memory allocation?
What is the difference between array_name and &array_name?
What is the basic structure of c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What are the three constants used in c?
What are pointers?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What is a static variable in c?
What is calloc in c?
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 ].
How can I automatically locate a programs configuration files in the same directory as the executable?
What is line in c preprocessor?
Tell me when is a void pointer used?