Computer Science, asked by psrinivasan110, 6 months ago

write a program to input a character find and display the next 10th character in ASCII table​

Answers

Answered by mad210202
0

Answer:

The above code is:

Explanation:

#include<stdio.h>

main()

{

char c;

printf("Enter a character\n");

scanf("%c",&c);

printf("The ascii value of %c is %d\n",c,c);

if((c+1)>127 && (c+1)<0){

for( i=0, i<=10, i++)

{

 printf("There is no next character after %c\nFor reference check ASCII Sheet\n",c);

   }

}

else{

 printf("The character after %c is %c\n",c,c+1);

}

 

}

Similar questions