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
Explain how do you determine a file’s attributes?
convert 12345 to 54321 withoutusing strig
a c code by using memory allocation for add ,multiply of sprase matrixes
Can we assign integer value to char in c?
Can you please compare array with pointer?
main() { int i; printf("%d", &i)+1; scanf("%d", i)-1; }
what is the output for this question: main() { int i=1; printf("%d%d%d",i,i++,++i); }
Explain what does it mean when a pointer is used in an if statement?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What are enums in c?
What are the languages are portable and platform independent?Why they are like that?
Differentiate between #include<...> and #include '...'