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 ].
No Answer is Posted For this Question
Be the First to Post Answer
what is difference between overriding and overloading?
main() { int x=20,y=35; x = y++ + x++; y = ++y + ++x; printf("%d %d\n",x,y); } what is the output?
how to write optimum code to divide a 50 digit number with a 25 digit number??
Why is python slower than c?
void main() { for(; 0 ;) ... { printf("hello"); ... } getch(); }
how to capitalise first letter of each word in a given string?
Determine if a number is a power of 2 at O(1).
Why doesn't C support function overloading?
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
what is a stack
Define macros.
What is a sequential access file?