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
The file stdio.h, what does it contain?
while running a program, i got the msg that press return key to exit.what that mean in C as there are no such options as far i know.
in malloc and calloc which one is fast and why?
what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }
Why do we use header files in c?
What is the meaning of ?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Can we declare variables anywhere in c?
what is difference between procedural language and functional language ?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
What are the different types of control structures?
What do mean by network ?