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
Why clrscr is used after variable declaration?
what is ur strangth & weekness
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is difference between arrays and pointers?
Describe the modifier in c?
Which function in C can be used to append a string to another string?
Is it possible to execute code even after the program exits the main() function?
what do the 'c' and 'v' in argc and argv stand for?
What are the application of void data type in c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What are the different categories of functions in c?
Can a pointer be static?
What is the difference between int main and void main?
What is data types?