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 null pointer constant?
program to print upper & lower triangle of a matrix
what is calloc and malloc?
What is a void * in c?
Write a program in C to convert date displayed in gregorian to julian date
How can I avoid the abort, retry, fail messages?
what is the difference between NULL('\0') and 0?
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
what are the 10 different models of writing an addition program in C language?
What are local and global variables?