SlideShare une entreprise Scribd logo
1  sur  2
Please let me know which of these 10 C++ statements are True and and which are False (no
explanation needed, thx).
1.The preprocessor symbol NULL and the C-string terminator, the null character share the value
0
2.NSI/ISO C++ standard includes a string-handling library in the form of the class string.
3.C-string literals are written ‘Hello’.
4.A C-string variable is just an array of characters.
Explanation:
A C-string must be terminated with the null character. Just an array of char is not enough.
5.A C-string variable with a something in it is always filled with characters.
6.A pointer is a variable that holds the address of some other location in memory.
7.Pointer variables are just memory addresses and can be assigned to one another without regard
to type.
8.The declaration below declares three pointer variables of type pointer to double that is, a
pointer of type (double*)
double* p1, p2, p3;
9.A pointer is an address, an address is an integer, but a pointer is not an integer.
10.You can get a pointer value to initialize a pointer variable from an object of an appropriate
type with the “address-of― operator, &.
Solution
1) true
2)true
3)false
4)true
5)true
6)true
7)true
8)true
9)true
10)true

Contenu connexe

Similaire à Please let me know which of these 10 C++ statements are True and and w.docx

Crack The Interview
Crack The InterviewCrack The Interview
Crack The InterviewPratik Patel
 
Literals, primitive datatypes, variables, expressions, identifiers
Literals, primitive datatypes, variables, expressions, identifiersLiterals, primitive datatypes, variables, expressions, identifiers
Literals, primitive datatypes, variables, expressions, identifiersTanishq Soni
 
Stringing Things Along
Stringing Things AlongStringing Things Along
Stringing Things AlongKevlin Henney
 
Basic Structure Of C++
Basic Structure Of C++Basic Structure Of C++
Basic Structure Of C++DevangiParekh1
 
Unit 5-hive data types – primitive and complex data
Unit 5-hive data types – primitive and complex dataUnit 5-hive data types – primitive and complex data
Unit 5-hive data types – primitive and complex datavishal choudhary
 
Chapter 6 intermediate code generation
Chapter 6   intermediate code generationChapter 6   intermediate code generation
Chapter 6 intermediate code generationVipul Naik
 
(4) cpp automatic arrays_pointers_c-strings
(4) cpp automatic arrays_pointers_c-strings(4) cpp automatic arrays_pointers_c-strings
(4) cpp automatic arrays_pointers_c-stringsNico Ludwig
 
Lesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsLesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsJamesChristianGadian
 
Learn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITLearn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITASIT
 
Module 1:Introduction
Module 1:IntroductionModule 1:Introduction
Module 1:Introductionnikshaikh786
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programmingSabik T S
 

Similaire à Please let me know which of these 10 C++ statements are True and and w.docx (20)

Crack The Interview
Crack The InterviewCrack The Interview
Crack The Interview
 
Lecture 7
Lecture 7Lecture 7
Lecture 7
 
Literals, primitive datatypes, variables, expressions, identifiers
Literals, primitive datatypes, variables, expressions, identifiersLiterals, primitive datatypes, variables, expressions, identifiers
Literals, primitive datatypes, variables, expressions, identifiers
 
Stringing Things Along
Stringing Things AlongStringing Things Along
Stringing Things Along
 
Basic Structure Of C++
Basic Structure Of C++Basic Structure Of C++
Basic Structure Of C++
 
C- language Lecture 5
C- language Lecture 5C- language Lecture 5
C- language Lecture 5
 
Strings in c++
Strings in c++Strings in c++
Strings in c++
 
C reference manual
C reference manualC reference manual
C reference manual
 
20.C++Pointer.pptx
20.C++Pointer.pptx20.C++Pointer.pptx
20.C++Pointer.pptx
 
Unit 5-hive data types – primitive and complex data
Unit 5-hive data types – primitive and complex dataUnit 5-hive data types – primitive and complex data
Unit 5-hive data types – primitive and complex data
 
Getting started with C++
Getting started with C++Getting started with C++
Getting started with C++
 
C tokens.pptx
C tokens.pptxC tokens.pptx
C tokens.pptx
 
C pointer
C pointerC pointer
C pointer
 
Chapter 6 intermediate code generation
Chapter 6   intermediate code generationChapter 6   intermediate code generation
Chapter 6 intermediate code generation
 
(4) cpp automatic arrays_pointers_c-strings
(4) cpp automatic arrays_pointers_c-strings(4) cpp automatic arrays_pointers_c-strings
(4) cpp automatic arrays_pointers_c-strings
 
C# overview part 1
C# overview part 1C# overview part 1
C# overview part 1
 
Lesson in Strings for C Programming Lessons
Lesson in Strings for C Programming LessonsLesson in Strings for C Programming Lessons
Lesson in Strings for C Programming Lessons
 
Learn C LANGUAGE at ASIT
Learn C LANGUAGE at ASITLearn C LANGUAGE at ASIT
Learn C LANGUAGE at ASIT
 
Module 1:Introduction
Module 1:IntroductionModule 1:Introduction
Module 1:Introduction
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 

Plus de kdavid658

The mutual fund industry is beginning to use the Internet to dissemina.docx
The mutual fund industry is beginning to use the Internet to dissemina.docxThe mutual fund industry is beginning to use the Internet to dissemina.docx
The mutual fund industry is beginning to use the Internet to dissemina.docxkdavid658
 
The primary tool for hardening symmetric cryptography is public key in.docx
The primary tool for hardening symmetric cryptography is public key in.docxThe primary tool for hardening symmetric cryptography is public key in.docx
The primary tool for hardening symmetric cryptography is public key in.docxkdavid658
 
the primary function of the skin the primary function of the skin.docx
the primary function of the skin    the primary function of the skin.docxthe primary function of the skin    the primary function of the skin.docx
the primary function of the skin the primary function of the skin.docxkdavid658
 
The primary difference between seasonality and cycles is- the duration.docx
The primary difference between seasonality and cycles is- the duration.docxThe primary difference between seasonality and cycles is- the duration.docx
The primary difference between seasonality and cycles is- the duration.docxkdavid658
 
The pointer in a node points to the data part of a node the count part.docx
The pointer in a node points to the data part of a node the count part.docxThe pointer in a node points to the data part of a node the count part.docx
The pointer in a node points to the data part of a node the count part.docxkdavid658
 
The nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docx
The nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docxThe nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docx
The nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docxkdavid658
 
The main function of a cell membrane is to allow substances to enter a.docx
The main function of a cell membrane is to allow substances to enter a.docxThe main function of a cell membrane is to allow substances to enter a.docx
The main function of a cell membrane is to allow substances to enter a.docxkdavid658
 
The left subtree of key value 14 has 3 key values and the right subtre.docx
The left subtree of key value 14 has 3 key values and the right subtre.docxThe left subtree of key value 14 has 3 key values and the right subtre.docx
The left subtree of key value 14 has 3 key values and the right subtre.docxkdavid658
 
Please show ALL work- If written please show with neat handwriting- I.docx
Please show ALL work- If written please show with neat handwriting- I.docxPlease show ALL work- If written please show with neat handwriting- I.docx
Please show ALL work- If written please show with neat handwriting- I.docxkdavid658
 
Please only answer if you know the answer- I have posted this twice an.docx
Please only answer if you know the answer- I have posted this twice an.docxPlease only answer if you know the answer- I have posted this twice an.docx
Please only answer if you know the answer- I have posted this twice an.docxkdavid658
 
Please make comments of the following discussion in 150-200 words-If y.docx
Please make comments of the following discussion in 150-200 words-If y.docxPlease make comments of the following discussion in 150-200 words-If y.docx
Please make comments of the following discussion in 150-200 words-If y.docxkdavid658
 
Please help!! I need to make the instructions for these by manipulatin.docx
Please help!! I need to make the instructions for these by manipulatin.docxPlease help!! I need to make the instructions for these by manipulatin.docx
Please help!! I need to make the instructions for these by manipulatin.docxkdavid658
 
PLEASE HELP! 1- The integrating power of globalization forces managers.docx
PLEASE HELP! 1- The integrating power of globalization forces managers.docxPLEASE HELP! 1- The integrating power of globalization forces managers.docx
PLEASE HELP! 1- The integrating power of globalization forces managers.docxkdavid658
 
please help with answer and explain homo and lumo in terms of acid-bas.docx
please help with answer and explain homo and lumo in terms of acid-bas.docxplease help with answer and explain homo and lumo in terms of acid-bas.docx
please help with answer and explain homo and lumo in terms of acid-bas.docxkdavid658
 
Please help me with this crossword!SolutionAcross- 4-Constitutional Is.docx
Please help me with this crossword!SolutionAcross- 4-Constitutional Is.docxPlease help me with this crossword!SolutionAcross- 4-Constitutional Is.docx
Please help me with this crossword!SolutionAcross- 4-Constitutional Is.docxkdavid658
 
Please Type Answer! Compare and contrast the properties of acids and b.docx
Please Type Answer! Compare and contrast the properties of acids and b.docxPlease Type Answer! Compare and contrast the properties of acids and b.docx
Please Type Answer! Compare and contrast the properties of acids and b.docxkdavid658
 

Plus de kdavid658 (16)

The mutual fund industry is beginning to use the Internet to dissemina.docx
The mutual fund industry is beginning to use the Internet to dissemina.docxThe mutual fund industry is beginning to use the Internet to dissemina.docx
The mutual fund industry is beginning to use the Internet to dissemina.docx
 
The primary tool for hardening symmetric cryptography is public key in.docx
The primary tool for hardening symmetric cryptography is public key in.docxThe primary tool for hardening symmetric cryptography is public key in.docx
The primary tool for hardening symmetric cryptography is public key in.docx
 
the primary function of the skin the primary function of the skin.docx
the primary function of the skin    the primary function of the skin.docxthe primary function of the skin    the primary function of the skin.docx
the primary function of the skin the primary function of the skin.docx
 
The primary difference between seasonality and cycles is- the duration.docx
The primary difference between seasonality and cycles is- the duration.docxThe primary difference between seasonality and cycles is- the duration.docx
The primary difference between seasonality and cycles is- the duration.docx
 
The pointer in a node points to the data part of a node the count part.docx
The pointer in a node points to the data part of a node the count part.docxThe pointer in a node points to the data part of a node the count part.docx
The pointer in a node points to the data part of a node the count part.docx
 
The nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docx
The nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docxThe nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docx
The nucleus of a 15 a distance of 5-4 x 10-11 m- What is the ratio of.docx
 
The main function of a cell membrane is to allow substances to enter a.docx
The main function of a cell membrane is to allow substances to enter a.docxThe main function of a cell membrane is to allow substances to enter a.docx
The main function of a cell membrane is to allow substances to enter a.docx
 
The left subtree of key value 14 has 3 key values and the right subtre.docx
The left subtree of key value 14 has 3 key values and the right subtre.docxThe left subtree of key value 14 has 3 key values and the right subtre.docx
The left subtree of key value 14 has 3 key values and the right subtre.docx
 
Please show ALL work- If written please show with neat handwriting- I.docx
Please show ALL work- If written please show with neat handwriting- I.docxPlease show ALL work- If written please show with neat handwriting- I.docx
Please show ALL work- If written please show with neat handwriting- I.docx
 
Please only answer if you know the answer- I have posted this twice an.docx
Please only answer if you know the answer- I have posted this twice an.docxPlease only answer if you know the answer- I have posted this twice an.docx
Please only answer if you know the answer- I have posted this twice an.docx
 
Please make comments of the following discussion in 150-200 words-If y.docx
Please make comments of the following discussion in 150-200 words-If y.docxPlease make comments of the following discussion in 150-200 words-If y.docx
Please make comments of the following discussion in 150-200 words-If y.docx
 
Please help!! I need to make the instructions for these by manipulatin.docx
Please help!! I need to make the instructions for these by manipulatin.docxPlease help!! I need to make the instructions for these by manipulatin.docx
Please help!! I need to make the instructions for these by manipulatin.docx
 
PLEASE HELP! 1- The integrating power of globalization forces managers.docx
PLEASE HELP! 1- The integrating power of globalization forces managers.docxPLEASE HELP! 1- The integrating power of globalization forces managers.docx
PLEASE HELP! 1- The integrating power of globalization forces managers.docx
 
please help with answer and explain homo and lumo in terms of acid-bas.docx
please help with answer and explain homo and lumo in terms of acid-bas.docxplease help with answer and explain homo and lumo in terms of acid-bas.docx
please help with answer and explain homo and lumo in terms of acid-bas.docx
 
Please help me with this crossword!SolutionAcross- 4-Constitutional Is.docx
Please help me with this crossword!SolutionAcross- 4-Constitutional Is.docxPlease help me with this crossword!SolutionAcross- 4-Constitutional Is.docx
Please help me with this crossword!SolutionAcross- 4-Constitutional Is.docx
 
Please Type Answer! Compare and contrast the properties of acids and b.docx
Please Type Answer! Compare and contrast the properties of acids and b.docxPlease Type Answer! Compare and contrast the properties of acids and b.docx
Please Type Answer! Compare and contrast the properties of acids and b.docx
 

Dernier

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Dernier (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Please let me know which of these 10 C++ statements are True and and w.docx

  • 1. Please let me know which of these 10 C++ statements are True and and which are False (no explanation needed, thx). 1.The preprocessor symbol NULL and the C-string terminator, the null character share the value 0 2.NSI/ISO C++ standard includes a string-handling library in the form of the class string. 3.C-string literals are written ‘Hello’. 4.A C-string variable is just an array of characters. Explanation: A C-string must be terminated with the null character. Just an array of char is not enough. 5.A C-string variable with a something in it is always filled with characters. 6.A pointer is a variable that holds the address of some other location in memory. 7.Pointer variables are just memory addresses and can be assigned to one another without regard to type. 8.The declaration below declares three pointer variables of type pointer to double that is, a pointer of type (double*) double* p1, p2, p3; 9.A pointer is an address, an address is an integer, but a pointer is not an integer. 10.You can get a pointer value to initialize a pointer variable from an object of an appropriate type with the “address-of― operator, &. Solution 1) true