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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is I ++ in c programming?

630


What do you mean by keywords in c?

632


console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above

661


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

631


Explain About fork()?

651






Differentiate between null and void pointers.

635


Describe wild pointers in c?

644


Are the variables argc and argv are local to main?

793


What is string function in c?

544


what is a NULL Pointer? Whether it is same as an uninitialized pointer?

762


The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none

717


Why isnt there a numbered, multi-level break statement to break out

592


write a program to generate address labels using structures?

4011


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2416


What is the difference between union and structure in c?

581