Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint
Cover Image
Cover Image
Drag to reposition
Contributed Answers

What are rvalues, lvalues, xvalues, glvalues, and prvalues in C++?

What are rvalues, lvalues, xvalues, glvalues, and prvalues in C++ languages? Can anyone explain this concept clearly?
Answered on 16th Feb, 2018, 0 Views

An lvalue has an address that your program can access. Examples of lvalue expressions include variable names, including const variables, array elements, function calls that return an lvalue reference, bit-fields, unions, and class members. A xvalue expression has no address but can be used to initialize an rvalue reference, which provides access to the expression. Examples include func.....

What are C++ Character Constants?

What are C++ Character Constants? Please explain this with an example?
Answered on 16th Feb, 2018, 0 Views

Character constants are one or more members of the “source character set,” the character set in which a program is written, surrounded by single quotation marks ('). They are used to represent characters in the “execution character set,” the character set on the machine where the program executes. These are sometimes also called character literals. In C++, A characte.....

What is different between constant and variable in C++?

Can anyone explain the differences between the constant and variable in C++ language with an example?
Answered on 16th Feb, 2018, 0 Views

Variable and constant are two commonly used mathematical concepts. Simply put, a variable is a value that is changing or that have the ability to change. A constant is a value which remains unchanged. For example, if you have a program that has a list of 10 radii and you want to calculate the area for all of these circles. To find the area of these circles, you'll write a program that will .....

What is type inference in C++?

What is type inference in C++? Explain them in detail with an example?
Answered on 16th Feb, 2018, 0 Views

Type inference or deduction refers to the automatic detection of the data type of an expression in a programming language. It is a feature present in some strongly statically typed languages. In C++, the auto keyword(added in C++ 11) is used for automatic type deduction. For example, you want to create an iterator to iterate over a vector, you can simply use auto for that purpose.  , I.....

What type of comments does C++ support?

What type of comments does C++ language support?please explain this with an example.
Answered on 16th Feb, 2018, 0 Views

Program comments are explanatory statements that you can include in the C++ code. These comments help anyone reading the source code. All programming languages allow for some form of comments. C++ supports single-line and multi-line comments. All characters available inside any comment are ignored by C++ compiler. To create a single line comment, we use the // notation. Wherever you want to.....

How to draw lines using HTML5 Canvas?

I have a website, which has posts related to computer graphics. I want to draw lines in some of the posts. I am quite aware of the usage of HTML5 Canvas. How can I use it to draw lines on my web page?
Answered on 29th Jan, 2018, 0 Views

The HTML5 <canvas> tag is used to draw graphics, animations, etc. using scripting. It is a new tag introduced in HTML5. Use the lineTo() method to draw lines using HTML5 canvas. You can try to run the following code to learn how to draw lines using HTML5 Canvas  Live Demo ,

How to draw ellipses on top of each other in HTML5 SVG?

I have a website, which has articles related to mathematics and mathematical expressions. I want to draw two ellipses in one of the posts. I am quite aware of the usage of HTML5 SVG. How can I use it to draw ellipses on top of each other on my web page?
Answered on 23rd Jan, 2018, 0 Views

SVG stands for Scalable Vector Graphics and is a language for describing 2D-graphics and graphical applications in XML and the XML is then rendered by an SVG viewer. Most of the web browsers can display SVG just like they can display PNG, GIF, and JPG. To draw an ellipse in HTML SVG, use the SVG <ellipse> element. For drawing ellipses on top of each other, set the coordinates properly.....

Why should we use <noscript> element in JavaScript?

What is the usage of the element in JavaScript?
Answered on 23rd Jan, 2018, 0 Views

To find whether the browser supports JavaScript or not, use the <noscript> tag. The HTML <noscript> tag is used to handle the browsers, which do recognize <script> tag but do not support scripting. This tag is used to display an alternate text message. Here’s an example Live Demo ,

What is the difference between HTML tags <div> and <span>?

Are both and fulfill different purposes? I have seen developers using them a lot, but it is getting difficult for me to understand when to use when? How to differentiate between and HTML tags.
Answered on 23rd Jan, 2018, 0 Views

Both <div> and <span> is used to define parts of a web page. The <span> element shows the inline portion of a document. The <div> elements show a block-level portion of a document. A div is a block-level element and a span is an inline element. The div should be used to wrap sections of a document, while use spans to wrap small portions of text, images, etc. Here&rsq.....

What is a fat arrow function in JavaScript?

Answered on 23rd Jan, 2018, 0 Views

Fat arrow function as the name suggests helps in decreasing line of code. The syntax => shows fat arrow. This also avoids you to write the keyword “function” repeatedly. Here’s the syntax: , Use the following for more than one argument: , Let’s compare a function with and without fat arrow: Function in JavaScript , Fat Arrow function in JavaScript , Arrow function.....

loader
Advertisements
Contribution

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.