

{"id":58010,"date":"2019-06-06T14:49:58","date_gmt":"2019-06-06T09:19:58","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=58010"},"modified":"2021-10-06T21:20:27","modified_gmt":"2021-10-06T15:50:27","slug":"typecasting-in-c-cpp","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/","title":{"rendered":"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion"},"content":{"rendered":"<p>Typecasting is a salient feature of the C\/C++ programming that gives the programmer the provision to convert one type of data into another type. Beginners commonly misconceive that the terms type conversions and typecasting in C\/C++can be used interchangeably, it is not the case. We will discuss their key differences in order to keep our concepts crystal clear.<\/p>\n<h3>Typecasting in C\/C++<\/h3>\n<p><em><strong>Typecasting<\/strong> is a way to convert a particular data type of a variable to another <strong>data type in C\/C++<\/strong><\/em>. It proves to be quite useful when it comes to memory management.\u00a0Suppose we want to store a value of data type int into a variable of data type long, we can achieve this task by typecasting int to long. And the good news is that it is as easy as it sounds.<\/p>\n<p><strong>Syntax<\/strong><\/p>\n<p><em>int number1;<\/em><br \/>\n<em>float number2;<\/em><br \/>\n<em>\u2026<\/em><br \/>\n<em>\/\/ BODY<\/em><br \/>\n<em>&#8230;.<\/em><br \/>\n<em>number2 = (float) number1;<\/em><\/p>\n<h3>Type Conversion in C and C++<\/h3>\n<p><em><strong>Type conversion<\/strong> is a concept in which one type of data is automatically converted into another type without the programmer\u2019s involvement<\/em>. <em>It is solely done by the compiler only if both the data types are compatible with each other.<\/em><\/p>\n<p><strong>Syntax<\/strong><\/p>\n<p><em>int number1 = 5;<\/em><br \/>\n<em>float number2;<\/em><br \/>\n<em>Number2 = a; \/\/ The value of number2 would be 5.000<\/em><\/p>\n<h3>Type Conversion vs Typecasting<\/h3>\n<p>Often people tend to use the terms typecasting and type conversions interchangeably whenever we talk about the conversion of one type of data to another, like, from int to char.<\/p>\n<p>It is important to note the following key differences:<\/p>\n<ol>\n<li>Typecasting refers to the conversion of one data type to another by the user, whereas type conversion refers to the automatic conversion of one type of data to another.<\/li>\n<li>We generally use typecasting when both the data types are incompatible with each other. Whereas in type conversion, it is mandatory for both the data types to be compatible with each other.<\/li>\n<li>We require the casting operator \u201c()\u201d for typecasting in C\/C++, whereas we do not require any such operator in the case of type conversion.<\/li>\n<li>We usually do type casting while writing the program, whereas we do type conversion usually during compilation.<\/li>\n<\/ol>\n<h3>Types of Type Conversions in C\/C++<\/h3>\n<p>In the C\/C++ programming language, type conversions are of two types, namely:<\/p>\n<h4>Implicit Type Conversion<\/h4>\n<p>It is automatic in nature as the compiler itself converts the variable from one type to the other without the employment of any other function. Hence, we do not require any operator.<\/p>\n<p>It is important to understand the rules associated with implicit type conversions. They are:<\/p>\n<ul>\n<li>Smaller data types are converted to larger data types to avoid the loss of data.<\/li>\n<li>When the operation between the int and float data type is performed, the resultant value would be of floating type.<\/li>\n<\/ul>\n<p>For instance, consider the following segment of code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">int x =4;\r\nfloat a = 14.4, b;\r\nb = a \/ x;<\/pre>\n<p>Now, let us understand how this works:<\/p>\n<p>In implicit type conversion, the \u201cx\u201d in a \/ x is automatically converted into the bigger data type, that is, the float data type. This happens in order to make \u201cx\u201d equal to \u201ca\u201d in terms of its data type.<\/p>\n<p>Therefore, the value of x = 4.0 and the expression a \/ x would be 14.4 \/ 4.0 = 3.6<\/p>\n<ul>\n<li>Similarly, when the operation between char\/short and int is performed, the resultant value would be of integer type as the bigger data type here is int.<\/li>\n<\/ul>\n<p>Note that the value of the char data type would be treated as its ASCII value, not as its original character type when an operation is performed between the char and int data type.<\/p>\n<p>For instance, consider the following segment of code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">char character = 'z';\r\nint number = 8, sum;\r\nsum = character + number;<\/pre>\n<p>Now, let us understand how it works:<\/p>\n<p>We know that the ASCII value of the lowercase character \u2018z\u2019 is 122. Therefore, the compiler automatically converts the character of char data type into the integer data type and the expression sum = character + number becomes equal to 122 + 8 = 130<br \/>\nTherefore, the output would be 130.<\/p>\n<p>From this discussion, it is pretty clear that the lower data type is converted into a higher data type.<\/p>\n<p><strong>The following diagram illustrates the ranking of a lower data type to a higher data type:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Implicit-Type-Conversion-.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61127 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Implicit-Type-Conversion-.jpg\" alt=\"Implicit Type Conversion C and C++\" width=\"700\" height=\"900\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Implicit-Type-Conversion-.jpg 700w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Implicit-Type-Conversion--117x150.jpg 117w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Implicit-Type-Conversion--233x300.jpg 233w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Implicit-Type-Conversion--520x669.jpg 520w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<h4>Explicit Type Conversion<\/h4>\n<p>It is done by the programmer according to his own convenience with the help of the cast operator.<\/p>\n<p><strong>Key takeaway:<\/strong> <em>The new data type should clearly be mentioned either before the identifier or the value within brackets that are to be typecasted.<\/em><\/p>\n<h5>Example of typecasting in C<\/h5>\n<p>Here is a program that illustrates the use of typecasting in C language:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include &lt;stdio.h&gt;\r\nint main ()\r\n{\r\n\r\nprintf(\"Welcome to DataFlair tutorials!\\n\\n\");\r\n\r\nint sum = 21, count = 5;\r\ndouble average;\r\naverage = (double) sum \/ count;\r\nprintf(\"The average value is : %f\\n\", average );\r\nreturn 0;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-58174\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C.jpg\" alt=\"Output of typecasting in C\" width=\"1301\" height=\"719\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C.jpg 1301w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C-150x83.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C-300x166.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C-768x424.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C-1024x566.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-C-520x287.jpg 520w\" sizes=\"auto, (max-width: 1301px) 100vw, 1301px\" \/><\/a><\/p>\n<h5>Example of typecasting in C++<\/h5>\n<p>Here is a program in C++ that illustrates the use of typecasting:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">#include &lt;iostream&gt;\r\nusing namespace std;\r\n\r\nint main ()\r\n{\r\n\r\ncout&lt;&lt;\"Welcome to DataFlair tutorials!\"&lt;&lt;endl&lt;&lt;endl;\r\nint sum = 21, count = 5;\r\ndouble average;\r\naverage = (double) sum \/ count;\r\ncout&lt;&lt;\"The average value is : \"&lt;&lt; average &lt;&lt;endl;\r\nreturn 0;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>Output-<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-61130 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp.jpg\" alt=\"Output of typecasting\" width=\"1300\" height=\"630\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp.jpg 1300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp-150x73.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp-300x145.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp-768x372.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp-1024x496.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Output-of-typecasting-in-Cpp-520x252.jpg 520w\" sizes=\"auto, (max-width: 1300px) 100vw, 1300px\" \/><\/a><\/p>\n<h3>Inbuilt Typecasting Functions in C\/C++<\/h3>\n<p>There are 5 basic types of inbuilt typecast <em><strong>functions in C\/C++<\/strong><\/em>:<\/p>\n<ol>\n<li><strong>atof():<\/strong> We use it to convert string data type into the float data type.<\/li>\n<li><strong>atoi():<\/strong> We use it to convert string data type into\u00a0the int data type.<\/li>\n<li><strong>atol():<\/strong> We use it to convert string data type into the long data type.<\/li>\n<li><strong>itoa():<\/strong> We use it to convert int data type into\u00a0the string data type.<\/li>\n<li><strong>ltoa():<\/strong> We use it to convert long data type into\u00a0the string data type.<\/li>\n<\/ol>\n<h3>Quiz on Typecasting in C\/C++<\/h3>\n<div class=\"learndash user_has_no_access\"  id=\"learndash_post_97076\"><div class=\"learndash-wrapper\">\n\n<div class=\"ld-tabs ld-tab-count-1\">\n\t\n\t<div class=\"ld-tabs-content\">\n\t\t\n\t\t\t<div role=\"tabpanel\" tabindex=\"0\" aria-labelledby=\"content\" class=\"ld-tab-content ld-visible\" id=\"ld-tab-content-58010\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\n\t<\/div> <!--\/.ld-tabs-content-->\n\n<\/div> <!--\/.ld-tabs-->\n\t\t<div class=\"wpProQuiz_content\" id=\"wpProQuiz_301\" data-quiz-meta=\"{&quot;quiz_pro_id&quot;:301,&quot;quiz_post_id&quot;:97076}\">\n\t\t\t<div class=\"wpProQuiz_spinner\" style=\"display:none\">\n\t\t\t\t<div><\/div>\n\t\t\t<\/div>\n\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_time_limit\">\n\t<div class=\"time\">\n\t\tTime limit: <span>0<\/span>\t<\/div>\n\t<div class=\"wpProQuiz_progress\"><\/div>\n<\/div>\n<div class=\"wpProQuiz_checkPage\" style=\"display: none;\">\n\t<h4 class=\"wpProQuiz_header\">\n\tQuiz Summary\t<\/h4>\n\t<p><span>0<\/span> of 15 Questions completed<\/p>\t<p>Questions:<\/p>\n\t<div class=\"wpProQuiz_reviewSummary\"><\/div>\n\n\t\n\t<input type=\"button\" name=\"endQuizSummary\" value=\"Finish Quiz\" class=\"wpProQuiz_button\" \/> <\/div>\n<div class=\"wpProQuiz_infopage\" style=\"display: none;\">\n\t<h4>Information<\/h4>\n\t\t<input type=\"button\" name=\"endInfopage\" value=\"Finish Quiz\" class=\"wpProQuiz_button\" \/> <\/div>\n<div class=\"wpProQuiz_text\">\n\t\t<div>\n\t\t<input class=\"wpProQuiz_button\" type=\"button\" \n\t\tvalue=\"Start Quiz\" name=\"startQuiz\" \/>\t<\/div>\n<\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_lock\">\t\t\n\t<p>You have already completed the quiz before. Hence you can not start it again.<\/p><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_loadQuiz\">\n\t<p>\n\t\tQuiz is loading&#8230;\t<\/p>\n<\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_startOnlyRegisteredUser\">\n\t<p>You must sign in or sign up to start the quiz.<\/p><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_prerequisite\">\n\t<p>You must first complete the following: <span><\/span><\/p><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_sending\">\n\t<h4 class=\"wpProQuiz_header\">Results<\/h4>\n\t<p>\n\t\t<div>\n\t\tQuiz complete. Results are being recorded.\t\t<\/div>\n\t\t<div>\n\t\t\t<dd class=\"course_progress\">\n\t\t\t\t<div class=\"course_progress_blue sending_progress_bar\" style=\"width: 0%;\">\n\t\t\t\t<\/div>\n\t\t\t<\/dd>\n\t\t<\/div>\n\t<\/p>\n<\/div>\n\n<div style=\"display: none;\" class=\"wpProQuiz_results\">\n\t<h4 class=\"wpProQuiz_header\">Results<\/h4>\n\t<p><span class=\"wpProQuiz_correct_answer\">0<\/span> of <span>15<\/span> Questions answered correctly<\/p>\t\t<p class=\"wpProQuiz_quiz_time\">\n\t\tYour time: <span><\/span>\t\t<\/p>\n\t\t\t<p class=\"wpProQuiz_time_limit_expired\" style=\"display: none;\">\n\tTime has elapsed\t<\/p>\n\n\t\t\t<p class=\"wpProQuiz_points\">\n\t\tYou have reached <span>0<\/span> of <span>0<\/span> point(s), (<span>0<\/span>)\t\t<\/p>\n\t\t<p class=\"wpProQuiz_graded_points\" style=\"display: none;\">\n\t\tEarned Point(s): <span>0<\/span> of <span>0<\/span>, (<span>0<\/span>)\t\t<br \/>\n\t\t<span>0<\/span> Essay(s) Pending (Possible Point(s): <span>0<\/span>)\t\t<br \/>\n\t\t<\/p>\n\t\t\n\t<div class=\"wpProQuiz_catOverview\" style=\"display:none;\">\n\t\t<h4>\n\t\tCategories\t\t<\/h4>\n\n\t\t<div style=\"margin-top: 10px;\">\n\t\t\t<ol>\n\t\t\t\t\t\t\t<li data-category_id=\"0\">\n\t\t\t\t\t<span class=\"wpProQuiz_catName\">Not categorized<\/span>\n\t\t\t\t\t<span class=\"wpProQuiz_catPercent\">0%<\/span>\n\t\t\t\t<\/li>\n\t\t\t\t\t\t\t<\/ol>\n\t\t<\/div>\n\t<\/div>\n\t<div>\n\t\t<ul class=\"wpProQuiz_resultsList\">\n\t\t\t\t\t\t\t<li style=\"display: none;\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/li>\n\t\t\t\t\t<\/ul>\n\t<\/div>\n\t\t<div class=\"ld-quiz-actions\" style=\"margin: 10px 0px;\">\n\t\t\t\t<div class='quiz_continue_link\n\t\t\t\t'>\n\n\t\t<\/div>\n\t\t\t\t\t<input class=\"wpProQuiz_button wpProQuiz_button_restartQuiz\" type=\"button\" name=\"restartQuiz\"\n\t\t\t\t\tvalue=\"Restart Quiz\"\/>\t\t\t\t\t\t<input class=\"wpProQuiz_button wpProQuiz_button_reShowQuestion\" type=\"button\" name=\"reShowQuestion\"\n\t\t\t\t\tvalue=\"View Questions\" \/>\t\t\t\t\t<\/div>\n<\/div>\n<div class=\"wpProQuiz_reviewDiv\" style=\"display: none;\">\n\t<div class=\"wpProQuiz_reviewQuestion\">\n\t<ol>\n\t\t\t\t\t<li>1<\/li>\n\t\t\t\t\t<li>2<\/li>\n\t\t\t\t\t<li>3<\/li>\n\t\t\t\t\t<li>4<\/li>\n\t\t\t\t\t<li>5<\/li>\n\t\t\t\t\t<li>6<\/li>\n\t\t\t\t\t<li>7<\/li>\n\t\t\t\t\t<li>8<\/li>\n\t\t\t\t\t<li>9<\/li>\n\t\t\t\t\t<li>10<\/li>\n\t\t\t\t\t<li>11<\/li>\n\t\t\t\t\t<li>12<\/li>\n\t\t\t\t\t<li>13<\/li>\n\t\t\t\t\t<li>14<\/li>\n\t\t\t\t\t<li>15<\/li>\n\t\t\t<\/ol>\n\t<div style=\"display: none;\"><\/div>\n<\/div>\n<div class=\"wpProQuiz_reviewLegend\">\n\t<ol>\n\t\t<li class=\"learndash-quiz-review-legend-item-current\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewQuestion_Target\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Current<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-review\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_Review\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Review \/ Skip<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-answered\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_Answer\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Answered<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-correct\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_AnswerCorrect\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Correct<\/span>\n\t\t<\/li>\n\t\t<li class=\"learndash-quiz-review-legend-item-incorrect\">\n\t\t\t<span class=\"wpProQuiz_reviewColor wpProQuiz_reviewColor_AnswerIncorrect\"><\/span>\n\t\t\t<span class=\"wpProQuiz_reviewText\">Incorrect<\/span>\n\t\t<\/li>\n\t<\/ol>\n\t<div style=\"clear: both;\"><\/div>\n<\/div>\n<div class=\"wpProQuiz_reviewButtons\">\n\t\t\t<input type=\"button\" name=\"review\" value=\"Review Question\" class=\"wpProQuiz_button2\" style=\"float: left; display: block;\"> \t\t\t\t\t<input type=\"button\" name=\"quizSummary\" value=\"Quiz Summary\" class=\"wpProQuiz_button2\" style=\"float: right;\"> \t\t\t\t<div style=\"clear: both;\"><\/div>\n\t<\/div>\n<\/div>\n<div class=\"wpProQuiz_quizAnker\" style=\"display: none;\"><\/div>\n<div style=\"display: none;\" class=\"wpProQuiz_quiz\">\n\t<ol class=\"wpProQuiz_list\">\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4641,&quot;question_post_id&quot;:97077}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>1<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>1<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">int x=10;<\/span><\/p>\n<p><span style=\"font-weight: 400\">char c=&#8217;r&#8217;;<\/span><\/p>\n<p><span style=\"font-weight: 400\">x=x+c;<\/span><\/p>\n<p><span style=\"font-weight: 400\">c=x-20;<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;x&lt;&lt;&#8220;,&#8221;&lt;&lt;c;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4641\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4641\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 10, r\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4641\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 124, h\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4641\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 124, r\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4641\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 10, h\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4642,&quot;question_post_id&quot;:97078}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>2<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>2<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0\u00a0\u00a0\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">int y=10;<\/span><\/p>\n<p><span style=\"font-weight: 400\">char c= (char)y+60;<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;c;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4642\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4642\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\">  70\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4642\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 10;\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4642\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> F\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4642\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 60\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4643,&quot;question_post_id&quot;:97079}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>3<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>3<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iomanip&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">double x=2.000045;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int y= x+1;<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;fixed&lt;&lt;setprecision(3)&lt;&lt;y;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4643\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4643\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4643\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 3.00\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4643\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 3.000\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4643\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 3.000045\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4644,&quot;question_post_id&quot;:97080}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>4<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>4<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iomanip&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">double x=2.000045;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int y= x+1;<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;fixed&lt;&lt;setprecision(3)&lt;&lt;(double)y;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4644\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4644\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4644\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\">  3.00\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4644\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 3.000\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4644\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 3.000045\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4645,&quot;question_post_id&quot;:97081}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>5<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>5<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iomanip&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">float f=5.3;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int y= static_cast&lt;float&gt;(f);<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;y;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4645\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4645\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 5\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4645\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 5.3\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4645\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4645\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> 5.30\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4646,&quot;question_post_id&quot;:97082}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>6<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>6<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">int *n=new int(70);<\/span><\/p>\n<p><span style=\"font-weight: 400\">char *c= reinterpret_cast&lt;char*&gt;(n);<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;*n&lt;&lt;&#8221; &#8220;&lt;&lt;*c;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4646\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4646\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 70 70\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4646\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> F F\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4646\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 70 F\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4646\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> F 70\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4647,&quot;question_post_id&quot;:97083}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>7<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>7<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int change(int *p)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">return(*p-10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">const int num=50;<\/span><\/p>\n<p><span style=\"font-weight: 400\">const int *p=&amp;num;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int *p1= const_cast&lt;int *&gt;(p);<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;change(p1);<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4647\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4647\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 50\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4647\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 40\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4647\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 30\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4647\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> Error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4648,&quot;question_post_id&quot;:97084}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>8<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>8<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int change(int *p)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">return(*p-10);<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">int num=50;<\/span><\/p>\n<p><span style=\"font-weight: 400\">const int *p=&amp;num;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int *p1= const_cast&lt;int *&gt;(p);<\/span><\/p>\n<p><span style=\"font-weight: 400\">change(p1);<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;num;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4648\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4648\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 50\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4648\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 40\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4648\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> 30\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4648\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> Error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4649,&quot;question_post_id&quot;:97085}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>9<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>9<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p><span style=\"font-weight: 400\">\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">int main(void)<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">int num=80;<\/span><\/p>\n<p><span style=\"font-weight: 400\">int *p = &amp;num;<\/span><\/p>\n<p><span style=\"font-weight: 400\">char *c= const_cast&lt;char*&gt;(p);<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;*c;<\/span><\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n<p>\u00a0<\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4649\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4649\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> P\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4649\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 80\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4649\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Compilation Error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4649\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> \t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4650,&quot;question_post_id&quot;:97086}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>10<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>10<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p>What will be the output of the following program?<\/p>\n<p><span style=\"font-weight: 400\">#include &lt;iostream&gt;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">using namespace std;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">int main()<\/span><\/p>\n<p><span style=\"font-weight: 400\">{<\/span><\/p>\n<p><span style=\"font-weight: 400\">int *n=new int(70);<\/span><\/p>\n<p><span style=\"font-weight: 400\">int *ptr=n;<\/span><\/p>\n<p><span style=\"font-weight: 400\">char *c= reinterpret_cast&lt;char&amp;&gt;(ptr);<\/span><\/p>\n<p><span style=\"font-weight: 400\">cout&lt;&lt;*ptr&lt;&lt;&#8221; &#8220;&lt;&lt;*c;<\/span><\/p>\n<p>\u00a0<\/p>\n<p><span style=\"font-weight: 400\">return 0;<\/span><\/p>\n<p><span style=\"font-weight: 400\">}<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4650\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4650\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> 70 70\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4650\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> 0x077 F\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4650\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> F F\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4650\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> Compilation Error\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4651,&quot;question_post_id&quot;:97087}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>11<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>11<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">What among the following is not a type of type conversion?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4651\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4651\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Implicit Type conversion\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4651\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> converting by assignment\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4651\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Conversion using cast operator\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4651\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> None of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4652,&quot;question_post_id&quot;:97088}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>12<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>12<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Which among the following is not a drawback of implicit conversion?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4652\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4652\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Can lose information\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4652\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> signs can be lost\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4652\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Done by compiler on its own, with any external trigger\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4652\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> overflow can occur\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4653,&quot;question_post_id&quot;:97089}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>13<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>13<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Which among the following is used to cast the constness of the variable?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4653\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4653\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Const_cast\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4653\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> Dynamic_cast\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4653\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Static_cast\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4653\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> Reinterpret _cast\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4654,&quot;question_post_id&quot;:97090}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>14<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>14<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">What is the function of reinterpret_cast?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4654\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4654\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Used to cast the constness of the variable\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4654\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> converts from one data type to other data type\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4654\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> convert a pointer member function to different pointer member function\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4654\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> None of the above\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t\t\t<li class=\"wpProQuiz_listItem\" style=\"display: none;\" data-type=\"single\" data-question-meta=\"{&quot;type&quot;:&quot;single&quot;,&quot;question_pro_id&quot;:4655,&quot;question_post_id&quot;:97091}\">\n\t\t\t\t<div class=\"wpProQuiz_question_page\" style=\"display:none;\" >\n\t\t\t\tQuestion <span>15<\/span> of <span>15<\/span>\t\t\t\t<\/div>\n\t\t\t\t<h5 style=\"display: inline-block;\" class=\"wpProQuiz_header\">\n\t\t\t\t\t<span>15<\/span>. Question\n\t\t\t\t<\/h5>\n\n\t\t\t\t\n\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_question\" style=\"margin: 10px 0px 0px 0px;\">\n\t\t\t\t\t<div class=\"wpProQuiz_question_text\">\n\t\t\t\t\t\t<p><span style=\"font-weight: 400\">Which among the following is a compile time cast?<\/span><\/p>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<p class=\"wpProQuiz_clear\" style=\"clear:both;\"><\/p>\n\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t<ul class=\"wpProQuiz_questionList\" data-question_id=\"4655\"\n\t\t\t\t\t\tdata-type=\"single\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"0\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4655\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"1\"> Const_cast\n\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"1\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4655\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"2\"> Dynamic_cast\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"2\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4655\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"3\"> Static_cast\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<li class=\"wpProQuiz_questionListItem\" data-pos=\"3\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span style=\"display:none;\"><\/span>\n\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t<input class=\"wpProQuiz_questionInput\" autocomplete=\"off\"\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"radio\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tname=\"question_301_4655\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue=\"4\"> Reinterpret _cast\t\t\t\t\t\t\t\t\t\t<\/label>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/li>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/ul>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_response\" style=\"display: none;\">\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_correct\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tCorrect\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div style=\"display: none;\" class=\"wpProQuiz_incorrect\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\tIncorrect\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"wpProQuiz_AnswerMessage\"><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"skip\" value=\"Skip question\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left; margin-right: 10px ;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"back\" value=\"Back\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: left ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"button\" name=\"check\" value=\"Check\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right ; margin-right: 10px ; display: none;\"> \t\t\t\t\t\t\t\t<input type=\"button\" name=\"next\" value=\"Next\" class=\"wpProQuiz_button wpProQuiz_QuestionButton\" style=\"float: right; display: none;\"> \t\t\t\t\t\t\t\t<div style=\"clear: both;\"><\/div>\n\n\t\t\t\t\t\t\t<\/li>\n\n\t\t\t<\/ol>\n\t<\/div>\n\t\t<\/div>\n\t\t\n<\/div> <!--\/.learndash-wrapper-->\n<\/div>\n<h3>Summary<\/h3>\n<p>In this tutorial, we discussed the basic meaning of type conversion and typecasting in C\/C++, which most people tend to mix up. We understood that it is possible to convert one type of data to another type, making it all the more flexible. Thereafter, we discussed what is implicit type conversion and explicit type conversion. We concluded our discussion by overviewing the different types of inbuilt typecasting functions in C and C++.<\/p>\n<p>Feel free to ask any queries in the comment section below. We would be happy to respond.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Typecasting is a salient feature of the C\/C++ programming that gives the programmer the provision to convert one type of data into another type. Beginners commonly misconceive that the terms type conversions and typecasting&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":61128,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20172],"tags":[20046,20041,20045,20042,20344,20342,20343],"class_list":["post-58010","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpp","tag-c-inbuilt-typecasting","tag-c-type-casting","tag-c-type-casting-with-example","tag-c-type-conversions","tag-c-type-conversion","tag-explicit-type-conversion","tag-implicit-type-conversion"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion - DataFlair<\/title>\n<meta name=\"description\" content=\"Typecasting in C\/C++ is a way to convert a particular data type of a variable to another. Learn how typecasting is different from type conversion with examples\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Typecasting in C\/C++ is a way to convert a particular data type of a variable to another. Learn how typecasting is different from type conversion with examples\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-06T09:19:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-06T15:50:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Typecasting-in-C-and-C.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"802\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion - DataFlair","description":"Typecasting in C\/C++ is a way to convert a particular data type of a variable to another. Learn how typecasting is different from type conversion with examples","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/","og_locale":"en_US","og_type":"article","og_title":"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion - DataFlair","og_description":"Typecasting in C\/C++ is a way to convert a particular data type of a variable to another. Learn how typecasting is different from type conversion with examples","og_url":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2019-06-06T09:19:58+00:00","article_modified_time":"2021-10-06T15:50:27+00:00","og_image":[{"width":802,"height":420,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Typecasting-in-C-and-C.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion","datePublished":"2019-06-06T09:19:58+00:00","dateModified":"2021-10-06T15:50:27+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/"},"wordCount":957,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Typecasting-in-C-and-C.jpg","keywords":["C Inbuilt Typecasting","C Type casting","C Type Casting with Example","C Type Conversions","C++ type conversion","Explicit Type Conversion","Implicit Type Conversion"],"articleSection":["C++ Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/","url":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/","name":"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Typecasting-in-C-and-C.jpg","datePublished":"2019-06-06T09:19:58+00:00","dateModified":"2021-10-06T15:50:27+00:00","description":"Typecasting in C\/C++ is a way to convert a particular data type of a variable to another. Learn how typecasting is different from type conversion with examples","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Typecasting-in-C-and-C.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2019\/06\/Typecasting-in-C-and-C.jpg","width":802,"height":420,"caption":"Typecasting in C and C++"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/typecasting-in-c-cpp\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"C++ Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/cpp\/"},{"@type":"ListItem","position":3,"name":"Typecasting in C\/C++ | Uncover Difference between Typecasting &amp; Type Conversion"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":false,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/58010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=58010"}],"version-history":[{"count":14,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/58010\/revisions"}],"predecessor-version":[{"id":103305,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/58010\/revisions\/103305"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/61128"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=58010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=58010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=58010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}