Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

UNIVERSITY OF OKARA

DEPARTMENT OF COMPUTER SCIENCE


M.Sc (CS) Evening Section A
STUDENT NAME: IFTIKHAR ALI (C.R)
ASSIGNMENT OF PROGRAMING FUNDAMENTALS

1.Following are the rules for naming variables in C++

1. Variable names in C++ can range from 1 to 255 characters.


2. All variable names must begin with a letter of the alphabet or an underscore (_).
3. After the first initial letter, variable names can also contain letters and numbers.
4. Variable names are case sensitive.
5. No spaces or special characters are allowed.
6. You cannot use a C++ keyword (a reserved word) as a variable name.

2.In C, precedence of operators

Arithmetic operators (*, %, /, +, -) is higher than relational operators (==,! =, >, <, >=, <=) and
precedence of relational operator is higher than logical operators (&&, || and !).
ASSIGNMENT OF PROGRAMING FUNDAMENTALS
FLOW CHARTS DETAIL NO.1

1- Flow Chart of an Even or Odd number.


2- Flow Chart power of any number.

NO.2

3- Flow chart greater than value


from three numbers.
4- Flow chart sum and average of
three numbers
NO.3
NO.4

You might also like