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
Why is c platform dependent?
What are predefined functions in c?
Explain how do you print only part of a string?
How many types of operator or there in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Explain what math functions are available for integers? For floating point?
What is structure packing in c?
What are register variables? What are the advantage of using register variables?
Can we use any name in place of argv and argc as command line arguments?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
Are there constructors in c?
Differentiate between functions getch() and getche().
Explain why c is faster than c++?