| | |
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 |
Tag cloud for C
#include * .net append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue mysql oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi



