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
Tell us two differences between new () and malloc ()?
Why we write conio h in c?
Write a program to reverse a string.
What does struct node * mean?
What is omp_num_threads?
Is c is a high level language?
Is c call by value?
What is the best organizational structure?
What does a function declared as pascal do differently?
What is the difference between c and python?
What is actual argument?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Explain the use of 'auto' keyword in c programming?
Explain what are binary trees?
How can you find the exact size of a data type in c?