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
How can you increase the allowable number of simultaneously open files?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is time null in c?
How to establish connection with oracle database software from c language?
Why c is called procedure oriented language?
What is indirection?
How can I send mail from within a c program?
Can 'this' pointer by used in the constructor?
Why should I use standard library functions instead of writing my own?
What is the size of empty structure in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Why c is called a middle level language?
What is the difference between %d and %i?
What is an endless loop?
What is the Purpose of 'extern' keyword in a function declaration?