if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE



if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND CORRESPONDING VALUE FROM ASCII TABLE..

Answer / vignesh1988i

since it is given as digits, lets assume that we take only
integers.

#include<stdio.h>
#include<conio.h>
void main()
{
int n,a[20],count=0;
printf("enter th number :");
scanf("%d",&n);
for(int i=0;n>0;i++)
{
a[i]=n%10;
n=n/10;
count++;
}
for(i=0;i<count;i++)
{
printf("%c",a[i]);
}
getch();
}
this will be the logic , i think so.....!

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

What is the newline escape sequence?

0 Answers  


Why c is a mother language?

0 Answers  


What is a floating point in c?

0 Answers  


is it possible to create your own header files?

0 Answers  


define c

6 Answers   HCL, TCS,






define function

4 Answers   Assurgent, Sonata,


What is the real difference between arrays and pointers?

27 Answers   Hexaware, Logic Pro, TCS,


What is switch in c?

0 Answers  


Is c compiled or interpreted?

0 Answers  


How can I dynamically allocate arrays?

0 Answers  


How do I use void main?

0 Answers  


a=(1,2,3); b=1,2,3; c=1,(2,3); d=(1,2),3; what's the value of 'a','b','c','d'

2 Answers  


Categories