Answer Posted / abhradeep chatterjee
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
printf("enter a number");
scanf("%d",&i);
for(int n=1;n<=5;n++)
{
j=i%10;
i=i/10;
printf("%d",j);
}
getch();
}
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
How can a number be converted to a string?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
why programs in c are running with out #include
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Explain why can’t constant values be used to define an array’s initial size?
What is #ifdef ? What is its application?
What is console in c language?
Are bit fields portable?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What are local variables c?
What is the purpose of type declarations?
What is the size of empty structure in c?
How are structure passing and returning implemented?
Explain what are preprocessor directives?
Explain what is the purpose of "extern" keyword in a function declaration?