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 old is c programming language?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What do you mean by a local block?
Explain how are 16- and 32-bit numbers stored?
Why isnt there a numbered, multi-level break statement to break out
Explain what is the stack?
write a program to display all prime numbers
Explain how can I convert a number to a string?
What is bss in c?
write a c program for swapping two strings using pointer
What are the different types of linkage exist in c?
provide an example of the Group by clause, when would you use this clause
What does malloc () calloc () realloc () free () do?
How variables are declared in c?
What are called c variables?