simple c program for 12345 convert 54321 with out using string
Answer Posted / sharan
#include<stdio.h>
//#include<conio.h>
void main()
{
int n,m;
printf("enter the number :");
scanf("%d",&n);
while (n)
{
m=n%10;
n=n/10;
printf("%d",m);
}
printf("\n");
}
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
Explain Basic concepts of C language?
Apart from dennis ritchie who the other person who contributed in design of c language.
Who developed c language?
What is a MAC Address?
Explain the advantages of using macro in c language?
What functions are in conio h?
What is pointer to pointer in c with example?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
What does calloc stand for?
What is the maximum length of an identifier?
What are register variables? What are the advantage of using register variables?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier. Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed. When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed. Sequence of take-off is the sequence of addition to the waitlist
Tell me the use of bit field in c language?
What is a node in c?
What is structure padding in c?