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
What are the advantages of c preprocessor?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What is pass by reference in c?
What does %p mean?
What is malloc and calloc?
Is main an identifier in c?
What is the scope of static variable in c?
I have seen function declarations that look like this
Can you please explain the difference between exit() and _exit() function?
What is "Hungarian Notation"?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
#include
What is meant by preprocessor in c?
What is #include stdlib h?
How can a string be converted to a number?