(Q)W hat is type casting ?Explain with Examples Ans:-In some application , we may often want to chang the date type of the variable or we can say that it is required to force the compiler to explicitly convert the value to a particular data type . this process is called type casting. Syntex:-(data type)variable. types:-(a)Imlicit (b)Explicity. Example:- x=(int)7.5 /*7.5 is converted to integer by truncation*/[Explicit type conversion]
(Q)what is relation operator Ans:- Relational operators are used to distinguish between two values depending on their relations.These operators provide the relationship between the two expressions if the relation is true then it returns a value 1 otherwise 0 for false relation. Example:- > , < , = , == , !=