summaryrefslogtreecommitdiff
path: root/reference/C/EXAMPLES/const.c
blob: d686d138abcc76986530765e130eb65daa59db73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/******************************************************************
 *
 * Purpose: Program to demonstrate const
 * Date:    03-Dec-96
 * Author:  M J Leslie.
 * Descrip: To be written.
 *
 ******************************************************************/

#include <stdio.h>

main()
{
  const int Men=10;

  Men = 20;             /* This will be failed by the compiler. */
}