please dont rip this site

Language Ccpp Cref Examples If.c

/ ****************************************************************
 *
 * Purpose: Program to demonstrate the 'if' statement.
 * Author:  M J Leslie
 * Date:    26-Feb-94
 *
 ****************************************************************/

#include <stdio.h>

main()
{
  int i=1;	/* Define an integer variable. 			*/

		/*
		 * i == 1 expression is evaluated. If TRUE the 
		 * first block is executed.
		 * if i == 1 is FALSE the optional else block 
		 * is executed 					*/

  if (i == 1)
  {
    puts ("i is equal to 1\n");
  }
  else
  {
    puts("i is NOT equal to 1");
  }
}


file: /Techref/language/ccpp/Cref/EXAMPLES/if.c, 0KB, , updated: 1997/4/21 08:52, local time: 2024/11/23 20:44,
TOP NEW HELP FIND: 
18.117.105.40: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://techref.massmind.org/Techref/language/ccpp/Cref/EXAMPLES/if.c"> language ccpp Cref EXAMPLES if</A>

Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .