program to find the ASCII value of a number

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5208


What does 2n 4c mean?

720


What is far pointer in c?

813


What are the three constants used in c?

546


Where is c used?

650






What is the sizeof () a pointer?

549


In a switch statement, explain what will happen if a break statement is omitted?

639


What is the difference between the = symbol and == symbol?

629


What is null character in c?

691


Why c is procedure oriented?

574


Explain why can’t constant values be used to define an array’s initial size?

856


What is use of integral promotions in c?

666


How can I split up a string into whitespace-separated fields?

571


What is sizeof c?

609


Do you know the purpose of 'register' keyword?

642