Advertisements
Advertisements
प्रश्न
Which of the following statement is valid? Why? Also, write their result.
int a; a = (3,014);
एका वाक्यात उत्तर
उत्तर
a = (3,014); – Valid. 014 is an octal constant. It will be converted into decimal and then stored in a. So, a will hold 12 as its value.
shaalaa.com
Sample program – A first look at C++ program
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [पृष्ठ १५१]