Write a program that displays the keyed in character and the next character in the ASCII table.

C Programming Language Data Types in C Language (Article) Data Types in C Language (Program)

1787

Program:

/*
 Program:  Write a program that displays the keyed-in character and the next character in the ASCII table. 
  
 Author: www.atnyla.com  
 
*/ 

#include "stdio.h" 
int main(void)
{
  int ch;
  ch=getchar();

  ch=ch++;
  putchar(ch);

  return 0;
} 

Output:

output one:
6 7 output two:
r s

Explanation:

None

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.