Skip to main content

Posts

Showing posts with the label cs201

CS201 Assignment # 1 Due Date: 7th May, 2018

Assignment No.   1 Semester: Spring 2018 CS201 – Introduction to Programming Total Marks: 20 Due Date: 07/05/2018 Lectures covered: 1 to 6 Instructions Please read the following instructions carefully before submitting assignment: It should be clear that your assignment will not get any credit if: o         Assignment is submitted after due date. o         Submitted assignment does not open or file is corrupt. o         Assignment is copied (From internet/students). Software allowed to develop Assignment -           Dev C++ Objectives: To enable students to write, compile and execute a program in Dev C++. Moreover to familiarize students with   the concepts of: Variables and operators Expressions in C++ Decision structu...

Dev c++ 3rd class

For more discuss and ask question join this group   https://www.facebook.com/groups/143792885956764/ Solved   By : Tahir Siddiqui(Mani) BC-140201235@Vu.edu.pk Dev c++ 3rd  lecture : Today Topic :Increment/decrements operators, and side effects : Incrementing (adding 1 to) and decrementing (subtracting 1 from) a variable are so common that they have their own operators in C. There are actually two versions of each operator -- a prefix version and a postfix version. Operator Symbol Form Operation Prefix increment (pre-increment) ++ ++x Increment x, then evaluate x Prefix decrement (pre-decrement) –– ––x Decrement x, then evaluate x Postfix increment (post-increment) ++ x++ Evaluate x, then increment x Postfix decrement (post-decrement) –– x–– Evaluate x, then decrement x for Example : int x = 5 ; int y = ++ x ;     // x is now equal to 6, and 6 is assigned to y int x = 5 ; ...

Dev c++ 3rd class

For more discuss and ask question join this group   https://www.facebook.com/groups/143792885956764/ Solved   By : Tahir Siddiqui(Mani) BC-140201235@Vu.edu.pk Dev c++ 3rd  lecture : Today Topic :Increment/decrements operators, and side effects : Incrementing (adding 1 to) and decrementing (subtracting 1 from) a variable are so common that they have their own operators in C. There are actually two versions of each operator -- a prefix version and a postfix version. Operator Symbol Form Operation Prefix increment (pre-increment) ++ ++x Increment x, then evaluate x Prefix decrement (pre-decrement) –– ––x Decrement x, then evaluate x Postfix increment (post-increment) ++ x++ Evaluate x, then increment x Postfix decrement (post-decrement) –– x–– Evaluate x, then decrement x for Example : int x = 5 ; int y = ++ x ;     // x is now equal to 6, and 6 is assigned to y int x = 5 ; ...