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 use of a conditional inclusion statement in C?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is formal argument?
1. Write a C program to count the number of occurrence of a specific word in the given strings. (for e.g. Find how many times the word “live” comes in the sentence “Dream as if you’ll live forever, live as if you’ll die today ”)
Explain what is the difference between far and near ?
Is c call by value?
What does 3 periods mean in texting?
How can I increase the allowable number of simultaneously open files?
what is the self-referential structure?
Why is conio.h not required when we save a file as .c and use clrscr() or getch() ?
Explain the difference between malloc() and calloc() in c?
write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com