program to find the ASCII value of a number

Answers were Sorted based on User's Feedback



program to find the ASCII value of a number..

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

program to find the ASCII value of a number..

Answer / babitha

# include<stdio.h>
# include <conio.h>

void main()
{
char input;
printf("enter an input to get ascii of input");
scanf("%c",&input);
printf("\n ascii of input %c: is %d",input,input);
getch();
}

Is This Answer Correct ?    39 Yes 19 No

program to find the ASCII value of a number..

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

program to find the ASCII value of a number..

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

program to find the ASCII value of a number..

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

program to find the ASCII value of a number..

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

program to find the ASCII value of a number..

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

program to find the ASCII value of a number..

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

Post New Answer

More C Interview Questions

What is null pointer in c?

0 Answers  


what is the output of the following code? main() { int I; I=0x10+010+10; printf("x=%x",I); } give detailed reason

3 Answers  


what is the use of ‘auto’ keyword?

1 Answers  


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

0 Answers  


Explain how does flowchart help in writing a program?

0 Answers  






what is the difference between 123 and 0123 in c?

0 Answers  


What is gets() function?

0 Answers  


Why does the call char scanf work?

0 Answers  


Why do we use int main instead of void main in c?

0 Answers  


What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?

2 Answers  


Should a function contain a return statement if it does not return a value?

0 Answers  


Explain what is wrong with this program statement?

0 Answers  


Categories