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 |
What is the difference between single charater constant and string constant?
how to connect oracle in C/C++.
can we implement multi-threads in c.
What does calloc stand for?
User define function contain thier own address or not.
Write a program to print all permutations of a given string.
What is adt in c programming?
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
Add Two Numbers Without Using the Addition Operator
int main() { int x = (2,3,4); int y = 9,10,11; printf("%d %d",x,y); } what would be the output?
what is the output of the following program and explain the answer #include<stdio.h> exp() { main(5) } main(int a) { printf("%d",a); return; }
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321