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
how to set Nth bit of a variable?
What are linked lists in c?
Is there a way to compare two structure variables?
write a program in c language for the multiplication of two matrices using pointers?
What is difference between Structure and Unions?
Write a program which returns the first non repetitive character in the string?
How do you search data in a data file using random access method?
how can use subset in c program and give more example
What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?
Do you know the difference between malloc() and calloc() function?
how many key words availabel in c a) 28 b) 31 c) 32
Write a program on swapping (100, 50)