Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use the ASCII code

Status
Not open for further replies.

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Hi,

Do you know how to use the ASCII, eg. NUL, SOH, STX, ETX, EOT, ENQ, SO, SI, .... and so on (20h-7Eh i will know how to use, it is easy)?

Do you have any webside teach you how to use the code?

Thany you..
 

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Re: ASCII

Hi,

The webside just given the table but didn't teach us how to use it.... Is there any webside teach you how to use the code in C?

Thanks...
 

picotube

Member level 5
Joined
Sep 24, 2004
Messages
84
Helped
6
Reputation
12
Reaction score
0
Trophy points
1,286
Activity points
781
ASCII

Code:
#include <stdio.h>


void main()
{
int ascii_char;
	
ascii_char = 65;

// %c is used to print out the character represented by the ascii code
printf("The ascii code of %c is 65.", ascii_char); 
}
 

    Help

    Points: 2
    Helpful Answer Positive Rating

Help

Advanced Member level 2
Joined
Feb 15, 2005
Messages
617
Helped
7
Reputation
14
Reaction score
3
Trophy points
1,298
Activity points
7,065
Re: ASCII

Hi,

How about NUL, SOH, STX, ETX, EOT, ENQ, SO, SI, .... and so on ??

Thanks for your program....
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top