Posts

Showing posts with the label basic of the swift programming.

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...