Skip to content

Update README.md#44

Open
eduvaibhav110 wants to merge 1 commit intoblacksag:masterfrom
Rish8955:master
Open

Update README.md#44
eduvaibhav110 wants to merge 1 commit intoblacksag:masterfrom
Rish8955:master

Conversation

@eduvaibhav110
Copy link

#include <stdio.h>
int main() {
char c;
printf("Enter a character: ");
scanf("%c", &c);

// %d displays the integer value of a character
// %c displays the actual character
printf("ASCII value of %c = %d", c, c);

return 0;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments