Write a c program to read a positive number and display it
in words.?
ex: 123=one two three
help me....
Answer Posted / melwin
The input which is in integer form separate each number by / and % operator store it in array a[i],then using switch case function assign each case from 0 to 1 assigning each case with string, for eg case 1 shld have String "ONE" like wise till case 9, copy that function and store it an a variable using string copy function.then print the string,increment the value of array from i to i+1 and again repeat the switch case.and print the consecutive values.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
writ a program to compare using strcmp VIVA and viva with its output.
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
Explain #pragma statements.
How can you call a function, given its name as a string?
What is a method in c?
Differentiate between new and malloc(), delete and free() ?
Difference between linking and loading?
please give me some tips for the placement in the TCS.
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
What are the types of c language?
What is printf () in c?
What is array in c with example?
What is data structure in c and its types?
Does * p ++ increment p or what it points to?
why do some people write if(0 == x) instead of if(x == 0)?