ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND 
CORRESPONDING VALUE FROM ASCII TABLE
 Question Submitted By :: HUNDI
I also faced this Question!!     Rank Answer Posted By  
 
  Re: if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND CORRESPONDING VALUE FROM ASCII TABLE
Answer
# 1
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 0 No
Vignesh1988i
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
difference of two no's with out using - operator  6
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast. Verifone5
HOW DO YOU HANDLE EXCEPTIONS IN C? AppLabs2
what is array?  6
write a program structure to find average of given number  1
what's the o/p int main(int n, char *argv[]) { char *s= *++argv; puts(s); exit(0); } Motorola1
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.  4
what is const volatile?  1
1,4,8,13,21,30,36,45,54,63,73,?,?. Franklin-Templeton5
how to impliment 2 or more stacks in a single dimensional array ? iFlex1
what is the difference between getch() and getchar()?  5
How can I find out how much memory is available? Persistent1
how to find the size of the data type like int,float without using the sizeof operator?  7
How do you write a program which produces its own source code as its output?  3
write a program in c language for the multiplication of two matrices using pointers? Ignou5
what is the difference between strcpy() and memcpy() function?  1
What should not contain a header file?  2
What is the most efficient way to count the number of bits which are set in a value?  3
what is a c-language.what is do. HCL3
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green") Cadence4
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com