Article 85679 of comp.lang.c: Path: winternet.com!solon.com!not-for-mail From: seebs@solutions.solon.com (Peter Seebach) Newsgroups: comp.lang.c,alt.religion.kibology Subject: Re: Question1 Date: 3 Feb 1996 10:04:48 -0600 Organization: Usenet Fact Police (Undercover) Lines: 53 Message-ID: <4f0130$co4@solutions.solon.com> References: <4eur2g$oaq@recepsen.aa.msen.com> NNTP-Posting-Host: solutions.solon.com Xref: winternet.com comp.lang.c:85679 alt.religion.kibology:93642 In article <4eur2g$oaq@recepsen.aa.msen.com>, Casey wrote: >For each tyep listed below, explain what sort of object can be stored in >variables of that type and igve 2 examples: >a. char A char holds an integer value. Examples: char coal = 32; char woman = 16; >b. int An int holds a numeric value. Examples: int pi = 3.14159; int i = sqrt(-1); >c. float A float variable can change during execution. Examples: float f = 1, g = 3; f = g; /* assigns g to f, causing f to 'float' */ >d. long int A long int has more digits than an int. Examples: long int ten = 00000012; long int hex = 0x15; You can enter a long using "0x" to mean hex. >e. unsigned int An unsigned int is one written without the + or - signs. Examples: unsigned int three = 1 / 3; unsigned int mult = 2 * 4; Hope This Helps! -s -- Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach. C/Unix wizard -- C/Unix questions? Send mail for help. No, really! Using trn? Weird new newsgroup problem? I know the fix! Email me! The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy