how to find out the reverse number of a digit if it is
input through the keyboard?
Answer Posted / amrit
int main()
{
int a = 5678;
int temp=0,rev;
while((a%10)!=0)
{
rev =a%10;
a=a/10;
temp= temp*10+ rev;
}
return 0;
}
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
What is difference between main and void main?
What is 2 d array in c?
How reliable are floating-point comparisons?
What is the difference between pure virtual function and virtual function?
Explain the Difference between the New and Malloc keyword.
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Explain how do you use a pointer to a function?
What is the purpose of ftell?
What is main () in c language?
How can I do serial ("comm") port I/O?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Explain how can I right-justify a string?
What are the advantages of c preprocessor?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f