simple c program for 12345 convert 54321 with out using string
Answer Posted / sreenivas
#include<stdio.h>
main()
{
long n=12345,r=0;
while(n)
{
r=r*10+n%10;
n=n/10;
}
printf("%ld",r);
}
Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Explain how do you search data in a data file using random access method?
Write a program for finding factorial of a number.
What is wrong with this program statement? void = 10;
Can an array be an Ivalue?
What is return in c programming?
Is there a built-in function in C that can be used for sorting data?
What is || operator and how does it function in a program?
What are the different properties of variable number of arguments?
What is enumerated data type in c?
What is an lvalue?
When should the volatile modifier be used?
How #define works?
Is array name a pointer?
write a proram to reverse the string using switch case?
What is hungarian notation? Is it worthwhile?