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
What are the valid places to have keyword “break”?
In C, What is the #line used for?
How to establish connection with oracle database software from c language?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
What is data type long in c?
Under what circumstances does a name clash occur?
Tell me about low level programming languages.
Can you please explain the difference between strcpy() and memcpy() function?
Explain bit masking in c?
What is f'n in math?
What is the difference between c &c++?
number of times a digit is present in a number
What are the advantages and disadvantages of pointers?
What is array in C
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?