program to find the ASCII value of a number
Answers were Sorted based on User's Feedback
Answer / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
char n;
printf("enter the character:");
scanf("%c",&n);
printf("the ascii value %c is %d",n,n);
getch();
}
| Is This Answer Correct ? | 53 Yes | 16 No |
Answer / seshaphani
void main()
{
int num;
printf("Enter the number");
scanf("%d",&num);
printf("ASCII of %d is %d\n",num,itoa(&num));
}
| Is This Answer Correct ? | 9 Yes | 7 No |
Answer / ketan deshmukh
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
for (i=0;i<255;i++)
printf("ASCII for %d is %c\n",i,i);
getch();
}
| Is This Answer Correct ? | 8 Yes | 7 No |
Answer / thiyanesh
#include<stdio.h>
void main()
{
char num ;
printf("enter the number: ");
scanf("%c",&num);
printf("the ascii value of %c is %d",num,num);
return 0;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dhinakar
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
void main()
{
char num;
printf("Enter the number");
scanf("%c",&num);
printf("ASCII of %d is %d\n",atoi(&num),num);
}
| Is This Answer Correct ? | 7 Yes | 7 No |
Answer / dhinakar
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
void main()
{
char num;
printf("Enter the number");
scanf("%c",&num);
printf("ASCII of %d is %d\n",atoi(&num),num);
}
| Is This Answer Correct ? | 7 Yes | 10 No |
Answer / rukmanee
#include<stdio.h>
#include<conio.h>
main()
{
int num;
clrscr();
printf("enter a number");
scanf("%d",&num);
printf("the ascii value of the number is %c",num);
getch();
}
| Is This Answer Correct ? | 2 Yes | 12 No |
Write a program on swapping (100, 50)
Compare interpreters and compilers.
can we access one file to one directory?
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.
What is the most efficient way to count the number of bits which are set in an integer?
List out few of the applications that make use of Multilinked Structures?
What is sizeof c?
what is a function method?give example?
write a program for fibonaci series by using while loop in c?
How can I find out the size of a file, prior to reading it in?
Differentiate fundamental data types and derived data types in C.
Does * p ++ increment p or what it points to?