| | |
Strings: Looking at ASCII Code
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Commonly strings consist of ASCII characters, some are printable, some are in the backgrounds like the bell, carriage return, linefeed, tab and so forth. This code displays a table of ASCII characters and the corresponding decimal value. As always, you are encouraged to learn here.
/* display the ASCII character table */ #include <stdio.h> int main() { int k; for ( k = 14; k < 256; k++ ) { printf ( "%3d = %c ",k, k ); } getchar(); /* wait for key */ return 0; }
Similar Threads
- Help Printing Ascii Code (Assembly)
- hex code of a ASCII char (Perl)
- passing in ascii/unicode strings to LoadLibrary (C++)
- Java 2 Ascii Code (JSP)
| Thread Tools | Search this Thread |
#include * ansi append array arrays asterisks bash binarysearch centimeter changingto char character convert copyimagefile cprogramme creafecopyofanytypeoffileinc createprocess() database dynamic execv fgets file floatingpointvalidation fork framework function getlogicaldrivestrin givemetehcodez grade gtkwinlinux hacking histogram ide inches include infiniteloop initialization input interest intmain() iso kernel keyboard kilometer km license linked linkedlist linux list lists looping lowest matrix meter microsoft number oddnumber open opendocumentformat openwebfoundation overwrite owf pdf pointer pointers posix power probleminc process program programming radix recursion recv recvblocked research reversing segmentationfault sequential single socket socketprogramming standard strchr string suggestions systemcall test testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi



