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
Why doesnt the call scanf work?
What are the various topologies? Which one is the most secure?
Explain what is dynamic data structure?
main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*
What is the use of #include in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
what is the defrenece between structure and union
Do you know null pointer?
Explain what is meant by 'bit masking'?
What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }
wat is the meaning of c?
What is variable and explain rules to declare variable in c?