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 method for an array in which it can display the largest n next largest value.
What is c preprocessor mean?
write a program to find a given no. is divisible by 3 or not without using any arthimetic operators?
What are the types of arrays in c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }
What are two dimensional arrays alternatively called as?
explain about storage of union elements.
In CMM or CMMI certified organizations,we assess only the standard software processes of the organization. We do not assess the organizations other functional departments like HR or Admin. Then how can we certify the entire organization as CMM level company?? We have assessed only software related activities. Right. There is no relation with other departments like Accounts, HR or Admin. Then how can we claim that the whole company is a CMM certified company?
Explain 'bit masking'?
Are there constructors in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.