C language interview questions solution for freshers beginners placement tricky good pointers answers explanation operators data types arrays structures functions recursion preprocessors looping file handling strings switch case if else printf advance linux objective mcq faq online written test prime numbers Armstrong Fibonacci series factorial palindrome code programs examples on c++ tutorials and pdf
I guess you are confused by a = 5>=5, it is just a condition which checks if 5 is greater than or equal to 5. Since it is C language, it will return 1 or 0 instead of true or false. The result will be assigned to a, i.e. 1. And float representation of 1 is 1.00e+00.
2 comments:
can anybody give the explanation of the above code ?
I guess you are confused by a = 5>=5, it is just a condition which checks if 5 is greater than or equal to 5. Since it is C language, it will return 1 or 0 instead of true or false. The result will be assigned to a, i.e. 1. And float representation of 1 is 1.00e+00.
Post a Comment