हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

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×