मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता ११

Which of the following statement is valid? Why? Also, write their result. int a; a = (3,014); - Computer Science

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 [पृष्ठ १५१]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 9 Introduction to C++
Data Types, Variables and Expressions - Evaluation - Section - B | Q 10. (ii) | पृष्ठ १५१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×