please dont rip this site

language ccpp cref EXAMPLES address

/ ************************************************************************
 *
 * Purpose: Demonstrate the Unary '&'  and '*' operators.
 *          Unary & - Address of a variable.
 *          Unary * - Data at the address.
 *	
 *	    These are not to be confused with their binary equivalents
 *	    that perform bitwise AND and OR.
 *
 * Author:  M J Leslie.
 * Date:    16-Apr-94
 *
 ************************************************************************/

main()
{
    int i=4;				/* variable declaration 	*/
    int* ptr;				/* int pointer			*/

    ptr = &i;				/* 'ptr' now contains the
					   address of 'i'		*/

    printf("  i is  %d.\n", i);
    printf("*ptr is %d.\n", *ptr);
}


file: /Techref/language/ccpp/cref/EXAMPLES/address.c, 0KB, , updated: 1998/1/27 10:23, local time: 2012/5/23 16:03,
TOP NEW HELP FIND: 
38.107.179.232:LOG IN

 ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/tecHREF/language/ccpp/cref/EXAMPLES/address.c"> language ccpp cref EXAMPLES address</A>

Did you find what you needed?

 
DON'T THROW IT AWAY! We part out dead printers, faxes, and other small mechanical items for hobby use and to support our web sites. And we pay shipping in California or pick up in San Diego North County. Call 1-619-652-0593 or email jamesnewton@massmind.org
 
Here is a great gift for computer geeks or widows:
The Backwoods Guide to Computer Lingo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .