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 the difference between text and binary i/o?
What is #include called?
Can we write a program without main() function?
How can you print HELLO WORLD without using "semicolon"?
Explain what are binary trees?
Can you please explain the difference between strcpy() and memcpy() function?
What are the features of c languages?
What is meant by gets in c?
What is the difference between array and pointer?
What is the use of header files?
Are global variables static in c?
write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com