simple c program for 12345 convert 54321 with out using string
Answer Posted / mohit
#include<stdio.h>
#include<conio.h>
main()
{
long int num,x=0;
int b;
while(n>0)
{
b=num%10;
num=num/10;
x=x*10+b;
}
printf("new number=%ld",x);
getch();
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
c language interview questions & answer
Explain how do you list a file’s date and time?
How do I send escape sequences to control a terminal or other device?
What is anagram in c?
What is the explanation for the dangling pointer in c?
What are the types of functions in c?
What is define c?
can anyone please tell about the nested interrupts?
What are the rules for the identifier?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
Why is c known as a mother language?
What is sizeof int?
What are categories used for in c?
Difference between MAC vs. IP Addressing
What is the size of array float a(10)?