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


Please Help Members By Posting Answers For Below Questions

any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

659


Where are the auto variables stored?

626


What is calloc in c?

661


What is the difference between pure virtual function and virtual function?

652


Why structure is used in c?

591






What tq means in chat?

582


What are logical errors and how does it differ from syntax errors?

661


How is a pointer variable declared?

594


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

647


Write a program to print "hello world" without using a semicolon?

595


What is the argument of a function in c?

574


Explain how do you list a file’s date and time?

620


Explain what is the difference between text files and binary files?

617


explain what is a newline escape sequence?

690


What are the advantages of union?

628