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 are the advantages & disadvantages of unions?
Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
int a=1,b=2,c=3; printf("%d,%d",a,b,c); What is the output?
#include<stdio.h> #include<conio.h> void main() { int m=0111,n=20; printf("%d%d\n",m,n); getch(); }
Explain what is the benefit of using an enum rather than a #define constant?
main() { int x=10,y=15; x=x++; y=++y; printf("%d %d\n",x,y); } output??
19 Answers EBS, Ramco, Sangwin, TCS,
Why can't we initialise member variable of a strucutre
array of pointer pointer to array pointer to pointer
Why is not a pointer null after calling free?
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
what are the advantage and disadvantage of recursion