EmbLogic's Blog

C assignment no.1

RCS file: 1.c,v
Working file: 1.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
use of printf to print data on screen
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:09:37; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 2.c,v
Working file: 2.c
head: 1.3
branch:
locks: strict
root: 1.3
access list:
symbolic names:
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
use of format specifier %s,%d,%f,%.2f,%c
—————————-
revision 1.3 locked by: root;
date: 2014/10/22 01:18:42; author: root; state: Exp; lines: +2 -2
understand the use of %.3f and %2.3f(same as prev).
—————————-
revision 1.2
date: 2014/10/22 01:14:31; author: root; state: Exp; lines: +1 -1
understand how to print ASCII value of a character
—————————-
revision 1.1
date: 2014/10/22 01:10:55; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 3.c,v
Working file: 3.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of abs() function to print positive value of a number
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:27:28; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 4.c,v
Working file: 4.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of \n \t.
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:30:03; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 5.c,v
Working file: 5.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of 4 basic data type int,char,float and double and their corresponding format specifier.
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:35:44; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 6.c,v
Working file: 6.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand that how to initialization and reinitialization of variable
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:40:17; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 7.c,v
Working file: 7.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of scanf function
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:42:20; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 8.c,v
Working file: 8.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of arithmatic operation inside code
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:43:25; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 9.c,v
Working file: 9.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of arithmatic operation to conver meter to centimeter
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:45:26; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 10.c,v
Working file: 10.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
implement the concept to swap two no, using 3rd temporary variable
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 01:48:20; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 11.c,v
Working file: 11.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
find the solution to swap two number w/o using 3rd variable
using a=(a+b)-(b=a);
but find overflow problem for too large numbers
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 02:17:37; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 12.c,v
Working file: 12.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the initialization and declaration and use of global varaible.
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 02:20:29; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 13.c,v
Working file: 13.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the scope rule of the local variable
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 02:44:05; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 14.c,v
Working file: 14.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of const qualifiers
After reassign this const variable i got a error.
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 02:47:32; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 15.c,v
Working file: 15.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the effect of misplacement of declaration and assignment of a variable.
I got compile time error when i assign a variable after using the printf statement to print it.
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 02:55:26; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 16.c,v
Working file: 16.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
multiply two float no.
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 03:00:36; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 17.c,v
Working file: 17.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the difference b/w c++ and ++c
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 03:05:19; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 18.c,v
Working file: 18.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of i=i+i+1;
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 03:08:09; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 19.c,v
Working file: 19.c
head: 1.1
branch:
locks: strict
root: 1.1
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
make pi value 3.14 as contant by using const double PI throughout the entire program
—————————-
revision 1.1 locked by: root;
date: 2014/10/22 03:15:30; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 20.c,v
Working file: 20.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
calculate simple intrest
—————————-
revision 1.1
date: 2014/10/22 03:21:09; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 21.c,v
Working file: 21.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
calculate area of the sqare
—————————-
revision 1.1
date: 2014/10/22 03:22:59; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 22.c,v
Working file: 22.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understant the use of / and % operator
—————————-
revision 1.1
date: 2014/10/22 03:23:55; author: root; state: Exp;
Initial revision
=============================================================================

RCS file: 23.c,v
Working file: 23.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1; selected revisions: 1
description:
understand the use of sizeof() function
—————————-
revision 1.1
date: 2014/10/22 03:24:59; author: root; state: Exp;
Initial revision
=============================================================================
[root@VIPIN c_assignment1]#

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>