Posts

Showing posts from May, 2020

compound assignment operator , swift basic operator , comparison operator , ternary conditional operator , simplyprogrammingIDEA.

Image
# Swift basic operator  In the last blog we start reading swift programming basic operator , we see all about operator and assignment and arithmetic operator in details. And in this blog we see some remaining operator . Compound assignment operator  In compound assignment operator we use ( = ) with other operator. var a = 5 print(a)       // 5 a += 2   the a += 2 is work as a = a + 2 and give the result of a + 2. print(a) // 7 a -= 4 print(a) // 3 Comparison Operators In swift there is comparison operators to compare . swift support all the standard comparison operaors. ·        (a == b) equal to operator ·        (a != b) not equal to operator ·        (a < b ) less than operator ·        (a > b) greater than operator ·        ( a >= b )...

Operator in the swift programmign languaga

Image
#Basic Operator in Swift Programming. Operator is special symbol that is use to change , combine and perform the task on the given value. For example ( + ) is arithmetic operator use to add two numbers. Swift gives almost all the operator that is present in the c programming language. Swift provide the range operator that is not present in the c programming. 1…2 , a..<b , it is used to show the range of value. In this blog we are going to see common   operator and learn to use them and try to   build programming_idea. Terminology There are tree type of the operator in all the programming language , unary , binary and ternary. ·        unary operator is performed operation on the single operand.( - a ) , unary prefix operator need just before(!a) the operand and unary postfix operator need to keep just   after the operand(a+) ·        Binary operator need two operand to perform the opera...

Basics of the swift programming language , variable in the swift programming , constant in the swift programming , type safe language, optional in swift programming

Image
basic of the swift programming , swift programming language, swift basic. Basic of Swift Programming Language:- Swift is new programming language use for the iOS, macOS ,tvOS, and watchOS before swift for these application development developer use c or c ++ . Swift provide many fundament form c or c++ like Int for the integer , float and Double for the floating point number , string for the textual data and bool for the Boolean value. And there are also three collection type array , set and dictionary , about every collection type we read in details later. Swift provide many thing that is same in c and objective c but along with those all swift also provide many advance feature like tuple that is used grouping the value. Swift has many advance feature optional is one of them , optional means either “there is a value, and it equals x ” or “there isn’t a value at all” optional is used ot handle the absence of the value. Not only are optionals safer and more express...