program that accepts amount in figures and print that in
words
Answers were Sorted based on User's Feedback
Answer / shilpa
int num, temp,lastnumber[100];
num=12345;
temp=num;
for(int i=1;temp==0;i++)
temp=temp/10; //to check how many digits are there
// even if zero is included in it like 10004
// so number of digits is equal to i;
temp=num;
for(int j=1;i==j;j++)
{
num=num/10; // since num is integer it will exculde the decimal
num=num*10; // exclude number will be replaced by zero
lastnumber[j]=temp-num;
temp=num;
}
| Is This Answer Correct ? | 5 Yes | 3 No |
What is the difference between union and anonymous union?
What should not contain a header file?
What is Memory leakage ?
How can I find out how much free space is available on disk?
why we are using float in C
What is d scanf?
what does exit() do?
a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none
I have a varargs function which accepts a float parameter?
Compare and contrast compilers from interpreters.
write a c/c++ program that takes a 5 digit number and calculates 2 power that number and prints it?
What is the difference between constant pointer and pointer to a constant. Give examples.