GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Tech FAQs  >  Programming  >  C
Go To First  |  Previous Question  |  Next Question 
 C  |  Question 89 of 92    Print  
Find ASCII value.
How to find the ASCII value of an element ?


  
Total Answers and Comments: 1 Last Update: August 08, 2008     Asked by: ashoksurati 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: chandrikakr
 
try this code:
#include<stdio.h>
#include<conio.h>
main()
{
    char a;
    clrscr();
    puts("Enter a character:");
    a=getchar();
    printf("nnThe ascii code of %c is %d",a,a);
    getch();
}

Above answer was rated as good by the following members:
praloy_piku
August 08, 2008 06:12:01   #1  
chandrikakr Member Since: July 2008   Contribution: 3    

RE: Find ASCII value.
try this code:
#include<stdio.h>
#include<conio.h>
main()
{
    char a;
    clrscr();
    puts("Enter a character:");
    a=getchar();
    printf("nnThe ascii code of %c is %d",a,a);
    getch();
}

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Q1. write a program to find a given number is armstrong number or not ?Q2write a program which accepts a filename as a command line argument and reverse the contents of the file(i.e first character becomes the last character of the file and so on ?Q3 how can i call a function given its name as a string ?Q4 How to swap low-order byte and high order byte in an integer without using temporary variable?Q5 If we develop a project in C, then how can we create an .exe file of it?Q6 how to print 1 to 100
please let me know the answers to my email address as i having the interview in TCS so please please please please let me know  
Read Answers (12) | Asked by : M.srilatha

Latest Answer : #include#includevoid main(){ int a,i;clrscr();printf( " enter the number");scanf("%d",&a);for(i=a;i

We have a 2 arrays e.g. arr1[]={2,3,4,4,5,6,7} , arr2[]={1,2,2,4,6,8,8} . Assuming that both the arrays are sorted , if we want to write a program to find common numbers present in both arrays , how do we do that ? Note that nested for loop has a complexity of n2 , hence avoid nested for loop.
View Question | Asked by : Ajay Kanse

Latest Answer : Here is the code for finding the size of data types without using sizeof() #include#define size_of(data) ( (char *)(&data +1) - (char *)(&data))int main(){    int INT;    char CHAR;    ...


How to find binary equivalent of a float number 5.375? 
View Question | Asked by : lydia john

1. Find output for following recursive function :int main(){int i=32242,j=find(i);}int find(int j){if(j){j = j%10 + find(j/10);printf(" %d ",j);}return j;} 2. What is the problem with following 
Latest Answer :  1.The answer is:24223 ...

How to find the least two numbers in a single dimension array in a single pass (traversing the elements only once) 
Latest Answer : It is very simple man. Just do like taht.#define LEAST_COMPARE(index, least) list[index] < list[least]for (index = 0;index < 10;index++){    if (LEAST_COMPARE(index,least))    {        ...
Read Answers (1) | Asked by : ramsoi

How to find the ASCII value of an element ? 
Latest Answer : try this code:#include#includemain(){    char a;    clrscr();    puts("Enter a character:");    a=getchar();    printf("nnThe ascii ...

How to find the address of a variable which is declared as long double? 
Latest Answer : You can use the sizeof() operator to get the size of a variable declared as long double. try the following code:#include#includemain(){    long double a;    clrscr();    printf("%d", ...


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school&rsquo;s al
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.&nbsp; By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.&nbsp; IT Certification offers several vari
 

Neuro-linguistic Programming Methods

Neuro linguistic Programming Methods There are several methods used for performing Neuro linguistic Programming on an individual for obtaining insights into the psyche of the person in order to correct to modify certain patterns of behavior These techniques are also used for Neuro linguistic trainin
 

The Difficult Past of Neuro-linguistic programming

The Difficult Past of Neuro linguistic programming Neuro linguistic programming has had a rocky past with a number of lawsuits rivalry unsystematic development and intermittent progress During the 1980s the two founders separated after the lawsuit filed by Bandler Bandler went on to file several law
 

History of Neuro Linguistic Programming (NLP)

History of Neuro linguistic programming Neuro Linguistic Programming NLP is a system co founded by John Grinder and Richard Bandler for bringing about personal development in any individual by interpreting and translating the human perception experience beliefs and language It was developed in early
 

The Use of Access Specifiers In Object Oriented Programming

The Use of Access Specifiers In Object Oriented Programming In object oriented programming a variable will have a certain range This range can be defined as the place where it can be viewed In most cases there are two simple models that are used and these are lexically scoped and dynamically scoped
 

Class-based Object Oriented Programming

Class based Object Oriented Programming Class based object oriented programming is a style that gains inheritance by processing classes as objects The most prominent style of OOP is class based instead of object based With the class based OOP system objects are units that merge states identities and
 

A Object Oriented Programming Lesson For Beginners

A Object Oriented Programming Lesson For Beginners In this article I will go over object oriented programming in relation to PHP This article will be especially useful to those who already have a simple knowledge of programming and variables You should know what a variable is and you should also kno
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape