Write a program in c to input a 5 digit number and print it
in words.
Answer Posted / manoj kumar
the program u wrote is wrong because it prints in reverse
means if u gave 12345 the output will be five four three
two one like this
for getting correct output the given number would be
reversed and we write code for that reversed number.
| Is This Answer Correct ? | 27 Yes | 30 No |
Post New Answer View All Answers
Explain pointer. What are function pointers in C?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
why do some people write if(0 == x) instead of if(x == 0)?
What is this pointer in c plus plus?
Why void is used in c?
which type of aspect you want from the student.
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Tell us something about keyword 'auto'.
How can I handle floating-point exceptions gracefully?
When we use void main and int main?
Explain how can a program be made to print the name of a source file where an error occurs?
difference between Low, Middle, High Level languages in c ?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?
Which is better pointer or array?