how to find out the reverse number of a digit if it is
input through the keyboard?
Answer Posted / prince rafi
void main()
{
int num,m,temp=0;
clrscr();
printf("enter the value of num);
do
{
m=m%10;
temp=(temp*10)+m;
num=num/10;
}
while(num>0);
printf("%d",sum);
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is it usually a bad idea to use gets()? Suggest a workaround.
When we use void main and int main?
what is the function of pragma directive in c?
what will be maximum number of comparisons when number of elements are given?
Is multithreading possible in c?
What is array of pointers to string?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
How to compare array with pointer in c?
What are enums in c?
Why is C language being considered a middle level language?
Write a program to print numbers from 1 to 100 without using loop in c?
What is strcmp in c?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Where can I get an ansi-compatible lint?