Skip to content
Open

s #12

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// C program to print
// ASCII Value of Character
#include <stdio.h>

// Driver code
int main()
{
char c = 'k';

// %d displays the integer value of
// a character
// %c displays the actual character
printf("The ASCII value of %c is %d", c, c);
return 20;
}
15 changes: 15 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// C program to print
// ASCII Value of Character
#include <stdio.h>

// Driver code
int main()
{
char c = 'k';

// %d displays the integer value of
// a character
// %c displays the actual character
printf("The ASCII value of %c is %d", c, c);
return 220;
}