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
Explain what is the heap?
What is function what are the types of function?
When should the volatile modifier be used?
Explain the use of 'auto' keyword in c programming?
Is it possible to initialize a variable at the time it was declared?
What are the advantages of using new operator as compared to the function malloc ()?
What is null pointer in c?
What is the difference between array and pointer?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is the method to save data in stack data structure type?
What does static variable mean in c?
Explain what is output redirection?
How can a number be converted to a string?
What is the use of sizeof?
What is a void pointer? When is a void pointer used?