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
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is pragma in c?
How can I swap two values without using a temporary?
What is this pointer in c plus plus?
What is 'bus error'?
What is volatile variable in c with example?
Write a program to swap two numbers without using third variable in c?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
How can I sort a linked list?
How do I get an accurate error status return from system on ms-dos?
What is a sequential access file?
How many levels of pointers have?
What is linear search?
Can you write a programmer for FACTORIAL using recursion?
what do you mean by enumeration constant?