HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT
IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
Answer Posted / yogita
#include<stdio.h>
void main()
{
int n;
printf("enter any number");
scanf("%d",&n);
while(n>0)
{
a=n%10;
n=n/10;
pritnf("%d",a);
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Why is it usually a bad idea to use gets()? Suggest a workaround.
In c language can we compile a program without main() function?
Can a variable be both constant and volatile?
how to construct a simulator keeping the logical boolean gates in c
Explain what are multidimensional arrays?
how to build a exercise findig min number of e heap with list imlemented?
Do array subscripts always start with zero?
What is an lvalue in c?
Lists the benefits of c programming language?
What is function definition in c?
Describe explain how arrays can be passed to a user defined function
How can I trap or ignore keyboard interrupts like control-c?
How pointer is different from array?
How is a null pointer different from a dangling pointer?
Differentiate between calloc and malloc.