please dont rip this site

Language Ccpp Cref Examples Address.c

/ ************************************************************************
 *
 * 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 09:23, local time: 2024/12/23 19:18,
TOP NEW HELP FIND: 
3.129.216.248:LOG IN

 ©2024 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://massmind.ecomorder.com/Techref/language/ccpp/Cref/EXAMPLES/address.c"> language ccpp Cref EXAMPLES address</A>

Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to massmind.ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .