Answer Posted / ajay
#include<stdio.h>
#include<conio.h>
main()
{
int a, b,c,d;
printf("Enter a value:");
scanf("%d", &a);
if (a%10==0)
{b=a/10;
printf("Reverse value is:%0d", b);}
else
{c=a%10;
d=(a/10)+(c*10);
printf("Reverse value is:%d", d);}
getch();
}
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What will be your course of action for a push operation?
How can you check to see whether a symbol is defined?
What does the function toupper() do?
Explain modulus operator. What are the restrictions of a modulus operator?
Is null equal to 0 in sql?
Explain how can a program be made to print the line number where an error occurs?
Write a Program to find whether the given number or string is palindrome.
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Under what circumstances does a name clash occur?
What is difference between array and pointer in c?
Explain pointer. What are function pointers in C?
Is it valid to address one element beyond the end of an array?
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.
Why do we use main function?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?