<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-950043378595886675</id><updated>2024-10-05T07:26:30.796+05:30</updated><category term="C Language Aptitude FAQ&#39;s"/><category term="C++ Compilers"/><category term="C++ Escape Codes"/><category term="C++ Programming"/><category term="History of C++ language"/><title type='text'>Lets Think About C &amp;amp; C++</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://c2hari.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-9159532601313057670</id><published>2011-08-04T17:26:00.000+05:30</published><updated>2011-08-04T19:24:22.762+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="History of C++ language"/><title type='text'>History of the C++ language</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: orange; color: red; line-height: normal; text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 24pt;&quot;&gt;History of the C++ language&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 24pt;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER29tOwKiYFlMOREqRF15gh__Qjo64Enk2OQs-UxHuleghjtykG4Q1GYpbuNUtLG77F7dT63KTc0B30g2ClOIT9asGRK0YTgnS7whNNGiJdsFHHuuxDPSO10j_njYOJMQYoKRTUMidzia/s1600/c2hari-teamwork.jpg&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER29tOwKiYFlMOREqRF15gh__Qjo64Enk2OQs-UxHuleghjtykG4Q1GYpbuNUtLG77F7dT63KTc0B30g2ClOIT9asGRK0YTgnS7whNNGiJdsFHHuuxDPSO10j_njYOJMQYoKRTUMidzia/s1600/c2hari-teamwork.jpg&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;In this first C++ programming language tutorial we are going to look at the history of the C++ language.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The C programming language was devised in the early 1970s by Dennis M. Ritchie an employee from Bell Labs (AT&amp;amp;T).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER29tOwKiYFlMOREqRF15gh__Qjo64Enk2OQs-UxHuleghjtykG4Q1GYpbuNUtLG77F7dT63KTc0B30g2ClOIT9asGRK0YTgnS7whNNGiJdsFHHuuxDPSO10j_njYOJMQYoKRTUMidzia/s1600/c2hari-teamwork.jpg&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Many other programming languages are derived from the C language. Some did well and some did not. The languages Objective-C and C++ for instance are derived from the C language.&amp;nbsp; Both languages add the “object oriented” element to the language C. One of the most recent languages, that used much of the C language, is Java.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: purple; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The programming language C++ (originally named “C with Classes”) was devised by Bjarne Stroustrup also an employee from Bell Labs (AT&amp;amp;T). Stroustrup started working on C with Classes in 1979.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: purple; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The idea of creating a new language originated from a wish, to do things, that were not possible with other languages. He had experience with the language Simula and BCPL (Simula is a slow language, but it had some features that were very helpful for large software development projects. BCPL was to low-level). So he chose to enhance the C language with Simula-like features, because the C language was fast and portable. Stroustrup did not only use features from Simula but also borrowed features from the languages Ada, CLU, ALGOL 68 and ML.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: purple; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In 1983, the name of the language was changed from C with Classes to C++. (The ++ is C language operator). The first commercial release of the C++ language&amp;nbsp;was in October of 1985. At the same time, the first edition of the book “The C++ Programming Language” was released. (Keep in mind that there was no official standard at that time. So the book became an important reference&amp;nbsp;to the language). In 1989, version 2.0 was released of the C++ language.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: purple; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In 1990, “The Annotated C++ Reference Manual” was published. This work became the basis for the future standard. (Keep in mind that there were additions to the language after 1990). In 1998, a joint ANSI-ISO committee standardized the C++ language.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: purple; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; As you can see it took a long time (almost 20 years) to come to a standardized version of the language. In 2003 the committee published a corrected version of the C++ standard. The last addition was in 2005. (The last addition is&lt;u&gt; not&lt;/u&gt; part of the standard, it is a so called “Library Technical Report”. (TR1 for short).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER29tOwKiYFlMOREqRF15gh__Qjo64Enk2OQs-UxHuleghjtykG4Q1GYpbuNUtLG77F7dT63KTc0B30g2ClOIT9asGRK0YTgnS7whNNGiJdsFHHuuxDPSO10j_njYOJMQYoKRTUMidzia/s1600/c2hari-teamwork.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: purple; line-height: normal; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/9159532601313057670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/9159532601313057670'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/08/history-of-c-language.html' title='History of the C++ language'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgER29tOwKiYFlMOREqRF15gh__Qjo64Enk2OQs-UxHuleghjtykG4Q1GYpbuNUtLG77F7dT63KTc0B30g2ClOIT9asGRK0YTgnS7whNNGiJdsFHHuuxDPSO10j_njYOJMQYoKRTUMidzia/s72-c/c2hari-teamwork.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-5021865016979925686</id><published>2011-08-03T17:12:00.000+05:30</published><updated>2011-08-04T18:39:56.318+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++ Compilers"/><title type='text'>C++ Compilers [GNU and Visual Studio]</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h1 style=&quot;background-color: orange; color: red; text-align: center;&quot;&gt;C++ Compilers [GNU and Visual Studio]&lt;/h1&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisX-1SBlpacp0LFX1mh9M2kYqugzEnL8yPNx3C_hJuRzbrwYfK94wIour98HFmvQooxvEmpTDUxLVsu5cnH0YRVOl4mx9nq8OKu1bRSxqYvgT9LSYuO7AL1YXKG28i3Pyz7sWKMhuyeO0I/s1600/c2hari-visul.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;272&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisX-1SBlpacp0LFX1mh9M2kYqugzEnL8yPNx3C_hJuRzbrwYfK94wIour98HFmvQooxvEmpTDUxLVsu5cnH0YRVOl4mx9nq8OKu1bRSxqYvgT9LSYuO7AL1YXKG28i3Pyz7sWKMhuyeO0I/s320/c2hari-visul.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;A compiler is a program that translates one language (high level) into another language (e.g., assembly language or machine specific language). A compiler translates source code (plain text) into object code (normally in a form suitable for processing by other programs (like a linker)). The most common reason for wanting to translate source code is to create an executable program.&lt;br /&gt;
After the compiler translates the source code in object code, the object(‘s) have to be linked into an executable. This is done by a program called a linker (in most cases the compile stage and link stage are done automatically. It is also possible to do these stages separately).&lt;br /&gt;
There are many different compilers available. Some compilers are operating system specific other can be used on different platforms. In the following two sections we take a look at two compilers: GNU compiler and Visual Studio.&lt;br /&gt;
&lt;h2 style=&quot;background-color: white; color: red;&quot;&gt;GNU Compiler:&lt;/h2&gt;The GNU Compiler Collection (GCC) includes front ends for C, C++ , Objective-C, etc., as well as libraries for these languages. GCC can be used on many different platforms, but is commonly used on Unix and Linux.&lt;br /&gt;
If you want to use GCC on a windows machine you should take a look at Cygwin. It is also possible to install a Linux partition besides a Windows partition (multi boot system). We recommend you use Ubuntu distribution for this.&lt;br /&gt;
You can use your favorite text editor to write your programs in. After writing your program you can use the following command to compile the program:&lt;br /&gt;
For c programs:&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;# gcc -o &amp;lt;output name&amp;gt; &amp;lt;your-source.c&amp;gt;&lt;/div&gt;For c++ programs:&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;# g++ &amp;lt;your-source.cpp&amp;gt; -o &amp;lt;output name&amp;gt;&lt;/div&gt;On some systems, g++ is also installed with the name c++.&lt;br /&gt;
It is also possible to compile C++ programs with gcc, however the use of gcc does not add the C++ library.&lt;br /&gt;
g++ is a program that calls GCC&lt;br /&gt;
and treats .c, .h and .i files as C++ source files instead of C source files&lt;br /&gt;
unless -x is used, and automatically specifies linking against the C++ library.&lt;br /&gt;
&lt;h2 style=&quot;color: red;&quot;&gt;Visual Studio 2005/2008 (Express edition):&lt;/h2&gt;Visual studio is the developer studio from Microsoft. It provides a complete set of development tools to create windows programs in many different languages (like visual basic, visual c++, etc.). The complete developer studio is not free. But it is possible to &lt;a href=&quot;http://www.microsoft.com/Express/&quot; title=&quot;Download Visual Studio Express&quot;&gt;download an express edition of Visual Studio C++ 2005 or 2008. (You have to register).&lt;/a&gt;&lt;br /&gt;
If you want to use Visual Studio Express for compiling win32 (console) applications you have to install the platform SDK as well. A complete instruction on how to install can be found here. &lt;b&gt;Note:&lt;/b&gt; the tutorials on this site are win32 console applications.&lt;br /&gt;
After you installed Visual Studio C++ and the platform SDK you can start your project.&lt;br /&gt;
To set-up a win32 console application do the following:&lt;br /&gt;
&lt;ul type=&quot;disc&quot;&gt;&lt;a href=&quot;http://siteground205.com/%7Eweseetip/wp-content/uploads/2008/08/visualstudio2008.jpg&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;174&quot; src=&quot;http://siteground205.com/%7Eweseetip/wp-content/uploads/2008/08/visualstudio2008.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;File, New,      Project&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Project      types : Visual C++, win32&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Templates      : Win32 Console Application&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Give the      project a name and press OK and then click next.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Check      Console Application and Empty project by Application settings.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Click      finish.&lt;/li&gt;
&lt;/ul&gt;An empty project is now made. To add a new source file do the following:&lt;br /&gt;
&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;In the      solution explorer select Sources files and right click on it.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Add, New      item, Templates: C++ file (.cpp), Name the file and press add.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;File, Save      all.&lt;/li&gt;
&lt;/ul&gt;The last thing to do is to set some Project properties:&lt;br /&gt;
&lt;ul type=&quot;disc&quot;&gt;&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Project,      Properties….&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Select      General&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Set      Character from &lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;“Use      Unicode Character Set”&lt;/span&gt;&lt;/i&gt; to &lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;;&quot;&gt;“Use      Multi-Byte Character Set”&lt;/span&gt;&lt;/i&gt;.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;line-height: normal;&quot;&gt;Exit with      OK.&lt;/li&gt;
&lt;/ul&gt;You are now ready to program your first program. After writing your program you can compile it by pressing F7.&lt;br /&gt;
&lt;h2 style=&quot;color: red;&quot;&gt;Important:&lt;/h2&gt;The examples included in the C and C++ tutorials are all console programs. That means they use text to communicate. All compilers support the compilation of console programs. Check the user’s manual of your compiler for more info on how to compile them. (It is not doable for us to write this down for every compiler).&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/5021865016979925686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/5021865016979925686'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/08/c-compilers-gnu-and-visual-studio.html' title='C++ Compilers [GNU and Visual Studio]'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisX-1SBlpacp0LFX1mh9M2kYqugzEnL8yPNx3C_hJuRzbrwYfK94wIour98HFmvQooxvEmpTDUxLVsu5cnH0YRVOl4mx9nq8OKu1bRSxqYvgT9LSYuO7AL1YXKG28i3Pyz7sWKMhuyeO0I/s72-c/c2hari-visul.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-5801975589434891986</id><published>2011-08-03T13:46:00.000+05:30</published><updated>2011-08-04T19:28:19.066+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++ Programming"/><title type='text'>C++ First Program by Hello World</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red; font-size: x-large;&quot;&gt;C++ First Program, Hello World&lt;/span&gt;&lt;/b&gt; &lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.koolhere.com/images/DevCpp.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;pre&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;// A hello world program in C++&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;a href=&quot;http://www.koolhere.com/images/DevCpp.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;100&quot; src=&quot;http://www.koolhere.com/images/DevCpp.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;#include&amp;lt;iostream&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt; &lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;using namespace std;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;int main()&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;{&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; &quot;Hello World!&quot;;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: blue;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: blue;&quot;&gt;} &lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;color: purple;&quot;&gt;We start the tutorial series with one of the simplest programs that can be written in the C++ language.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;The hello world program is one of the simplest programs, but it already contains the fundamental components that every C++ program has. Don’t be overwhelmed, we will take a look at the code line by line.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Type the code in your favorite editor (always type, don’t use cut/paste. This is better for learning purposes).&lt;br /&gt;
Save the program with the name: hello.cpp or C2Hari.CPP.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;After saving the source code you can compile it. It should compile without any errors.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; Remember, the examples included in the C and C++ tutorials are all console programs. That means they use text to communicate. All compilers support the compilation of console programs. Check the user manual of you compiler for more information on how to compile them.&lt;br /&gt;
(It is not doable for us to write this down for every compiler).&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;// A hello world program in C++&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;The first line in our program is a comment line. Every line that starts with two slash signs ( // ) are considered comments and will have no effect on the behavior or outcome of the program. (Words between /* and */ will also be considered as comments (old style comments)). Use comments in your programs to explain difficult sections, but don’t overdo it. It is also common practice to start every program with a brief description on what the program will do.&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;#include&amp;lt;iostream&amp;gt;&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;Lines beginning with a pound sign (#) are used by the compilers pre-processor. In this case the directive #include tells the pre-processor to include the iostream standard file. This file iostream includes the declarations of the basic standard input/output library in C++. (See it as including extra lines of code that add functionality to your program).&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;using namespace std;&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;All the elements of the standard C++ library are declared within what is called a namespace. In this case the namespace with the name std. We put this line in to declare that we will make use of the functionality offered in the namespace std. This line of code is used very frequent in C++ programs that use the standard library. You will see that we will make use of it in most of the source code included in these tutorials.&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;int main()&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;int is what is called the return value (in this case of the type integer. Integer is a whole number). What is used for will be explained further down.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Every program must have a main() function. The main function is the point where all C++ programs start their execution. The word main is followed by a pair of round brackets. That is because it is a function declaration (Functions will be explained in more detail in a later tutorial). It is possible to enclose a list of parameters within the round brackets.&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;{}&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;The two curly brackets (one in the beginning and one at the end) are used to indicate the beginning and the end of the function main. (Also called the body of a function). Everything contained within these curly brackets is what the function does when it is called and executed. In the coming tutorials you will see that many other statements make use of curly brackets. &lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;cout &amp;lt;&amp;lt; “Hello World”;&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;This line is a C++ statement. A statement is a simple expression that can produce an effect. In this case the statement will print something to our screen.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;cout&lt;/b&gt; represents the standard output stream in C++.&lt;br /&gt;
(There is also a standard input stream that will be explained in another tutorial). In this a sequence of characters (Hello World) will be send to the standard output stream (in most cases this will be your screen).&lt;br /&gt;
The words Hello World have to be between ” “, but the ” ” will not be printed on the screen. They indicate that the sentence begins and where it will end.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;cout&lt;/b&gt; is declared in the iostream standard file within the std namespace. This is the reason why we needed to include that specific file. This is also the reason why we had to declare this specific namespace.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;As you can see the statement ends with a semicolon (;). The semicolon is used to mark the end of the statement. The semicolon must be placed behind all statements in C++ programs. So, remember this. One of the common errors is to forget to include a semicolon after a statement.&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;return 0;&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;The return statement causes the main function to finish. You may return a return code (in this case a zero) but it depends on how you start your function main( ). We said that main ( ) will return an int (integer). So we have to return something (in this case a zero). A zero normally indicates that everything went ok and a one normally indicates that something has gone wrong. (This is standard practice. After running an UNIX/Linux program there is often a check on the return code).&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;Indentations&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;As you can see the cout and the return statement have been indented or moved to the right side. This is done to make the code more readable. In a program as Hello World, it seems a stupid thing to do. But as the programs become more complex, you will see that it makes the code more readable. (Also you will make fewer errors, like forgetting a curly bracket on the end of a function).&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/5801975589434891986'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/5801975589434891986'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/08/c-first-program-by-hello-world.html' title='C++ First Program by Hello World'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-8664961433671188617</id><published>2011-08-02T19:02:00.000+05:30</published><updated>2011-08-04T19:48:43.784+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C++ Escape Codes"/><title type='text'>C++  Escape code &amp; Constants &amp; Strings Codes</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;h1 style=&quot;background-color: orange; color: red; text-align: center;&quot;&gt;C++ constants, escape codes and strings&lt;/h1&gt;&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;1.Escape Codes :&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Escape codes are used to represent characters that are difficult to express otherwise in the source code.&amp;nbsp; For instance a tab (\t). Escape codes all start with a backslash (\).&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.bucksfire.gov.uk/NR/rdonlyres/01E99AF9-FDD4-4685-AD09-6BEE3C0315D7/0/escape_logo.jpg&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;http://www.bucksfire.gov.uk/NR/rdonlyres/01E99AF9-FDD4-4685-AD09-6BEE3C0315D7/0/escape_logo.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;color: purple; width: 290px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\n&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Newline&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\r&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://dag.embl-heidelberg.de/string_pictures/hnb_string_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;carriage&lt;br /&gt;
return&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\t&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Tab&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\v&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;vertical&lt;br /&gt;
tab&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\b&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;Backspace&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\f&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;form feed&lt;br /&gt;
(page feed)&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\a&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt;&quot;&gt;alert&lt;br /&gt;
(beep)&lt;/span&gt;&lt;span lang=&quot;NL&quot;&gt;&lt;/span&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\’&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;single quote (‘)&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\”&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;double quote (“)&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\?&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;question mark (?)&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;tr&gt;   &lt;td style=&quot;padding: 0in; width: 15.75pt;&quot; width=&quot;21&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;\\&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;padding: 0in; width: 201.75pt;&quot; width=&quot;269&quot;&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;span lang=&quot;NL&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;; font-size: 10pt; line-height: 115%;&quot;&gt;backslash (\)&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://www.bucksfire.gov.uk/NR/rdonlyres/01E99AF9-FDD4-4685-AD09-6BEE3C0315D7/0/escape_logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;Escape codes can be used like so:&lt;a href=&quot;http://dag.embl-heidelberg.de/string_pictures/hnb_string_logo.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;jane\n&quot;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;jane\t doe&quot;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;color: purple;&quot;&gt;Escape codes can also be used to express octal (base-8) or hexadecimal (base-16) numbers. An octal number can be used like this: \10 (backslash followed by a number.)&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;A hexadecimal number can be used like this: \xF0 (a backslash followed by an x and the number.)&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;It is also possible to define an escape code.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;For example:&lt;/div&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;iostream&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using namespace std;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define PI 3.14159&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;/code&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;note (1)&lt;/span&gt;&lt;/b&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define NEW_LINE &#39;\n&#39;; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // &lt;/code&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;;&quot;&gt;note (2)&lt;/span&gt;&lt;/b&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int main ()&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; float my_var=5.0;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my_var = my_var * 2; &lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; my_var;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; NEW_LINE; &lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: magenta;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: magenta;&quot;&gt;Note:&lt;/span&gt; (1)&lt;/b&gt; The #define directive is not a C++ statement but a directive for the pre-processor. It assumes the entire line is the directive and does not require a semicolon.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;(2)&lt;/b&gt; If a semicolon character ( ; ) is appended at the end of the define statement, the pre-processor will replace all NEW_LINE for \n.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;2.Constants:&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;The difference between variables and constants is that variables can change their value at any time but constants can never change their value. (The constants value is locked for the duration of the program.)&lt;br /&gt;
Constants can be very useful, PI for instance is a good example to declare as a constant. &lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;h2 style=&quot;color: magenta;&quot;&gt;Defining a constants:&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;With the pre-processor directive “define” it is possible to define your own constants.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;The format of the pre-processor directive #define is:&lt;br /&gt;
&lt;b&gt;#define identifier value&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Take a look at an example:&lt;/div&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define PI 3.14&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define A 5&lt;/code&gt;&lt;/pre&gt;&lt;h2 style=&quot;color: magenta;&quot;&gt;Consent Prefix:&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;The const prefix can be used to declare a constant of a specific type.&lt;br /&gt;
(The same way as you would declare any other variable.)&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Take a look at the example:&lt;/div&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const int x = 50;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const char newline = &#39;\n&#39;;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const y = 50;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; If no data type is presented (last example) the compiler will assume a data type!&lt;br /&gt;
In this case it will assume that the data type is an integer (int).&lt;/div&gt;&lt;h2 style=&quot;color: red;&quot;&gt;3.Strings:&lt;/h2&gt;&lt;h2 style=&quot;color: magenta;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Introduction to Strings:&lt;/span&gt;&lt;/h2&gt;&lt;div style=&quot;color: purple;&quot;&gt;In this paragraph we take a brief look at strings. In a later tutorial we will take a closer look at strings.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://dag.embl-heidelberg.de/string_pictures/hnb_string_logo.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/div&gt;Variables that can store more then a single character are known as strings.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;The C++ Standard Template Library (STL) contains a string class that has to be included before you can make use of strings. Also you need to have access to the &lt;b&gt;standard namespace.&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Take a look at an example:&lt;/div&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;a href=&quot;http://dag.embl-heidelberg.de/string_pictures/hnb_string_logo.png&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;64&quot; src=&quot;http://dag.embl-heidelberg.de/string_pictures/hnb_string_logo.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp; #include&amp;lt;iostream&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp; #include&amp;lt;string&amp;gt; //add for std::string&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp; using namespace std;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp; int main()&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp; {&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string mystring = &quot;This is a string&quot;;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; mystring;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp; }&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;color: purple;&quot;&gt;&lt;b&gt;Note:&lt;/b&gt; Instead of “string mystring” you could also say “std::string mystring” if you don’t want to include &lt;b&gt;using namespace std&lt;/b&gt;. Instead of &lt;b&gt;mystring = “This is a string”; &lt;/b&gt;it is also possible to make use of parentheses: &lt;b&gt;mystring = (“This is a string”);&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Strings can also perform all the other basic operations that fundamental data types can. For instance, being declared without an initial value and being assigned values during execution.&lt;/div&gt;&lt;div style=&quot;color: purple;&quot;&gt;Take a look at the following example:&lt;/div&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;iostream&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;string&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using namespace std;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int main ()&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string mystring;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mystring = &quot;First value&quot;;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; mystring &amp;lt;&amp;lt; endl;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mystring = &quot;Second value&quot;;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cout &amp;lt;&amp;lt; mystring &amp;lt;&amp;lt; endl;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;color: purple;&quot;&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;div style=&quot;color: purple;&quot;&gt;That’s all for this tutorial. In the next tutorial we will look at operators.&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/8664961433671188617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/8664961433671188617'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/08/c-escape-code-constants-strings-codes.html' title='C++  Escape code &amp; Constants &amp; Strings Codes'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-5135023740173334146</id><published>2011-08-02T11:06:00.000+05:30</published><updated>2011-08-04T19:51:16.566+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language Aptitude FAQ&#39;s"/><title type='text'>C-Language Aptitude Questions &amp; Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: center; text-indent: -0.25in;&quot;&gt;&lt;a href=&quot;http://c2hari.blogspot.com/2011/07/c-language-aptitude-questions-answers.html&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: orange; font-size: x-large;&quot;&gt;C Language Aptitude FAQ&#39;s &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;1.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;void main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int&amp;nbsp; const * p=5;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,++(*p));&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error: Cannot modify a constant value. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p is a pointer to a &quot;constant integer&quot;. But we tried to change the value of the &quot;constant integer&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;2.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char s[ ]=&quot;man&quot;;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;s[ i ];i++)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n%c%c%c%c&quot;,s[ i ],*(s+i),*(i+s),i[s]);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mmmm&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  aaaa&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  nnnn&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally&amp;nbsp; array name is the base address for that array. Here &lt;b&gt;s&lt;/b&gt; is the base address. &lt;b&gt;i&lt;/b&gt; is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the&amp;nbsp; case of&amp;nbsp; C&amp;nbsp; it is same as s[i].&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;3.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; float me = 1.1;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double you = 1.1;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(me==you)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;I love U&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;else&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;I hate U&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer: &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;I hate U&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;For floating point numbers &lt;b&gt;(&lt;/b&gt;float, double, long double&lt;b&gt;)&lt;/b&gt; the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value&amp;nbsp; represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Rule of Thumb: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Never compare or at-least be cautious when using floating point numbers with relational operators &lt;b&gt;(&lt;/b&gt;== , &amp;gt;, &amp;lt;, &amp;lt;=, &amp;gt;=,!= &lt;b&gt;)&lt;/b&gt; .&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;4.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static int var = 5;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d &quot;,var--);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(var)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main();&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;5 4 3 2 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;When &lt;i&gt;static&lt;/i&gt; storage class is given, it is initialized once. The change in the value of a &lt;i&gt;static &lt;/i&gt;variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursively.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;5.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int c[ ]={2.8,3.4,4,6.7,5};&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;int j,*p=c,*q=c;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(j=0;j&amp;lt;5;j++) {&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; %d &quot;,*c);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ++q;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;for(j=0;j&amp;lt;5;j++){&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot; %d &quot;,*p);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;++p;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2 2 2 2 2 2 3 4 6 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation: &lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Initially pointer c is assigned to both &lt;b&gt;p&lt;/b&gt; and &lt;b&gt;q&lt;/b&gt;. In the first loop, since only &lt;b&gt;q&lt;/b&gt; is incremented and not c , the value 2 will be printed 5 times. In second loop &lt;b&gt;p&lt;/b&gt; itself is incremented. So the values 2 3 4 6 5 will be printed. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;6.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern int i;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i=20;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Linker Error&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; : Undefined symbol &#39;_i&#39;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extern storage class in the following declaration,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;extern int i;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;specifies to the compiler that the memory for &lt;b&gt;i&lt;/b&gt; is allocated in some other program and that address will be given to the current program at the time of linking. But linker finds that no other variable of name &lt;b&gt;i&lt;/b&gt; is available in any other program with memory space allocated for it. Hence a linker error has occurred .&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;7.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=-1,j=-1,k=0,l=2,m;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m=i++&amp;amp;&amp;amp;j++&amp;amp;&amp;amp;k++||l++;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d %d %d %d %d&quot;,i,j,k,l,m);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 0 1 3 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Logical operations always give a result of &lt;b&gt;1 or 0 &lt;/b&gt;. And also the logical AND (&amp;amp;&amp;amp;) operator has higher priority over the logical OR (||) operator. So the expression&amp;nbsp; ‘&lt;b&gt;i++ &amp;amp;&amp;amp; j++ &amp;amp;&amp;amp; k++’&lt;/b&gt; is executed first. The result of this expression is 0&amp;nbsp;&amp;nbsp;&amp;nbsp; (-1 &amp;amp;&amp;amp; -1 &amp;amp;&amp;amp; 0 = 0). Now the expression is 0 || 2 which evaluates to 1 (because OR operator always gives 1 except for ‘0 || 0’ combination- for which it gives 0). So the value of m is 1. The values of other variables are also incremented by 1.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;8.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char *p;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d %d &quot;,sizeof(*p),sizeof(p));&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The sizeof() operator gives the number of bytes taken by its operand. P is a character pointer, which needs one byte for storing its value (a character). Hence sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character pointer sizeof(p) gives 2.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;9.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=3;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch(i)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; default:printf(&quot;zero&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; case 1: printf(&quot;one&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; case 2:printf(&quot;two&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; case 3: printf(&quot;three&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; break;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;three&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn&#39;t match.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;10.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; printf(&quot;%x&quot;,-1&amp;lt;&amp;lt;4);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;fff0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;-1 is internally represented as all 1&#39;s. When left shifted four times the least significant 4 bits are filled with 0&#39;s.The %x format specifier specifies that the integer value be printed as a hexadecimal value.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;11.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char string[]=&quot;Hello World&quot;;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; display(string);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;void display(char *string)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;printf(&quot;%s&quot;,string);&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error :&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; Type mismatch in redeclaration of function display &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation :&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;In third line, when the function &lt;b&gt;display&lt;/b&gt; is encountered, the compiler doesn&#39;t know anything about the function display. It assumes the arguments and return types to be integers, (which is the default type). When it sees the actual function &lt;b&gt;display,&lt;/b&gt; the arguments and type contradicts with what it has assumed previously. Hence a compile time error occurs.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;12.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int c=- -2;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;c=%d&quot;,c);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Here unary minus (or negation) operator is used twice. Same maths&amp;nbsp; rules applies, ie. minus * minus= plus.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;However you cannot give like --2. Because -- operator can&amp;nbsp; only be applied to variables as a &lt;b&gt;decrement &lt;/b&gt;operator (eg., i--). 2 is a constant and not a variable.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;13.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#define int char&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=65;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;sizeof(i)=%d&quot;,sizeof(i));&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sizeof(i)=1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Since the #define replaces the string&amp;nbsp; &lt;b&gt;int&lt;/b&gt; by the macro &lt;b&gt;char&lt;/b&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;14.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i=10;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i=!i&amp;gt;14;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Printf (&quot;i=%d&quot;,i);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i=0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;In the expression &lt;b&gt;!i&amp;gt;14&lt;/b&gt; , NOT (!) operator has more precedence than ‘ &amp;gt;’ symbol.&amp;nbsp; &lt;b&gt;!&lt;/b&gt; is a unary logical operator. !i (!10) is 0 (not of true is false).&amp;nbsp; 0&amp;gt;14 is false (zero). &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;15.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;char s[]={&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;\n&#39;,&#39;c&#39;,&#39;\0&#39;};&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;char *p,*str,*str1;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p=&amp;amp;s[3];&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;str=p;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;str1=s;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,++*p + ++*str1-32);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;77&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p is pointing to character &#39;\n&#39;. str1 is pointing to character &#39;a&#39; ++*p. &quot;p is pointing to &#39;\n&#39; and that is incremented by one.&quot; the ASCII value of &#39;\n&#39; is 10, which is then incremented to 11. The value of ++*p is 11. ++*str1, str1 is pointing to &#39;a&#39; that is incremented by 1 and it becomes &#39;b&#39;. ASCII value of &#39;b&#39; is 98.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;Now performing (11 + 98 – 32), we get 77(&quot;M&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;So we get the output 77 :: &quot;M&quot; (Ascii is 77).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;16.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int a[2][2][2] = { {10,2,3,4}, {5,6,7,8}&amp;nbsp; };&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int *p,*q;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p=&amp;amp;a[2][2][2];&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;*q=***a;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d----%d&quot;,*p,*q);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;SomeGarbageValue---1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p=&amp;amp;a[2][2][2]&amp;nbsp; you declare only two 2D arrays, but you are trying to access the third 2D(which you are not declared) it will print garbage values. *q=***a starting address of a is assigned integer pointer. Now q is pointing to starting address of a. If you print *q, it will print first element of 3D array.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;17.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct xx&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int x=3;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char name[]=&quot;hello&quot;;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;};&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct xx *s;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,s-&amp;gt;x);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%s&quot;,s-&amp;gt;name);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;You should not initialize variables in declaration&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;18.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct xx&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int x;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.75in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct yy&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.75in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;char s;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct xx *p;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.75in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;};&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.75in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct yy *q;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;};&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The structure yy is nested within structure xx. Hence, the elements are of yy are to be accessed through the instance of structure xx, which needs an instance of yy to be known. If the instance is created after defining the structure the compiler will not know about the instance relative to xx. Hence for nested structure yy you have to declare member.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;19.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;\nab&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;\bsi&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;\rha&quot;);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;hai&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;\n&amp;nbsp; - newline&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;\b&amp;nbsp; - backspace&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;\r&amp;nbsp; - linefeed&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;20.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i=5;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d%d%d%d%d%d&quot;,i++,i--,++i,--i,i);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;45545&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The arguments in a function call are pushed into the stack from left to right. The evaluation is by popping out from the stack. and the&amp;nbsp; evaluation is from right to left, hence the result.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;21.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#define square(x) x*x&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i = 64/square(4);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;64&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;22.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;i&gt;main()&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;{&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;i&gt;char *p=&quot;hai friends&quot;,*p1;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;i&gt;p1=p;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;i&gt;while(*p!=&#39;\0&#39;) ++*p++;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;i&gt;printf(&quot;%s&amp;nbsp;&amp;nbsp; %s&quot;,p,p1);&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;}&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;ibj!gsjfoet&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Explanation:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/i&gt;&lt;/b&gt;++*p++ will be parse in the given order&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Wingdings;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;*p that is value at the location currently pointed by p will be taken&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Wingdings;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;++*p the retrieved value will be incremented &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;span style=&quot;font-family: Wingdings;&quot;&gt;Ø&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;when ; is encountered the location will be incremented that is p++ will be executed&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;Hence, in the while loop initial value pointed by p is ‘h’, which is changed to ‘i’ by executing ++*p and pointer moves to point, ‘a’ which is similarly changed to ‘b’ and so on. Similarly blank space is converted to ‘!’. Thus, we obtain value in p becomes “ibj!gsjfoet” and since p reaches ‘\0’ and p1 points to p thus p1doesnot print anything. &lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;23.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#define a 10&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#define a 50&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,a);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;50&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;24.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#define clrscr() 100&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;clrscr();&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d\n&quot;,clrscr());&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;100&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input&amp;nbsp; program to compiler looks like this :&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d\n&quot;,100);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;100; is an executable statement but with no action. So it doesn&#39;t give any problem&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 1in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: -0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;25.&lt;span style=&quot;font: 7pt &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%p&quot;,main);&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Some address will be printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Function names are just addresses (just like array names are addresses).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main() is also a function. So the address of function main will be printed. %p in printf specifies that the argument is an address. They are printed as hexadecimal numbers.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;27)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;clrscr();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;clrscr();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;No output/error&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The first clrscr() occurs inside a function. So it becomes a function call. In the second clrscr(); is a function declaration (because it is not inside any function).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;28)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enum colors {BLACK,BLUE,GREEN}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d..%d..%d&quot;,BLACK,BLUE,GREEN);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;return(1);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;0..1..2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;enum assigns numbers starting from 0, if not explicitly defined.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;29)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;char far *farther,*farthest;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d..%d&quot;,sizeof(farther),sizeof(farthest));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;4..2&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the second pointer is of char type and not a far pointer&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;30)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int i=400,j=300;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d..%d&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;400..300&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf takes the values of the first two assignments of the program. Any number of printf&#39;s may be given. All of them take only the first two values. If more number of assignments given in the program,then printf will take garbage values.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;31)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;char *p;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;p=&quot;Hello&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%c\n&quot;,*&amp;amp;*p);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;H &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;* is a dereference operator &amp;amp; is a reference&amp;nbsp; operator. They can be&amp;nbsp;&amp;nbsp;&amp;nbsp; applied any number of times provided it is meaningful. Here&amp;nbsp; p points to&amp;nbsp; the first character in the string &quot;Hello&quot;. *p dereferences it and so its value is H. Again&amp;nbsp; &amp;amp; references it to an address and * dereferences it to the value H.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;32) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (i&amp;lt;=5)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (i&amp;gt;2)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; goto here;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;fun()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; here:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;PP&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error: Undefined label &#39;here&#39; in function main&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Labels have functions scope, in other words The scope of the labels is limited to functions . The label &#39;here&#39; is available in function fun() Hence it is not visible in function main.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;33)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; static char names[5][20]={&quot;pascal&quot;,&quot;ada&quot;,&quot;cobol&quot;,&quot;fortran&quot;,&quot;perl&quot;};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char *t;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t=names[3];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; names[3]=names[4];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; names[4]=t; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0;i&amp;lt;=4;i++)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%s&quot;,names[i]);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error: Lvalue required in function main&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Array names are pointer constants. So it cannot be modified.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;34)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=5;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,i++ + ++i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Output Cannot be predicted&amp;nbsp; exactly.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Side effects are involved in the evaluation of&amp;nbsp;&amp;nbsp; i&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;35)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=5;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,i+++++i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The expression i+++++i is parsed as i ++ ++ + i which is an illegal combination of operators. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;36)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i=1,j=2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;switch(i)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;case 1:&amp;nbsp; printf(&quot;GOOD&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;case j:&amp;nbsp; printf(&quot;BAD&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error: Constant expression required in function main.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The case statement can have only constant expressions (this implies that we cannot use variable names directly so an error).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;Note:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Enumerated types can be used in case statements. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;37)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,scanf(&quot;%d&quot;,&amp;amp;i));&amp;nbsp; // value 10 is given as input here&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Scanf returns number of items successfully read and not 1/0.&amp;nbsp; Here 10 is given as input which should have been scanned successfully. So number of items read is 1. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;38)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define f(g,g2) g##g2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int var12=100;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,f(var,12));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;100 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;39)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i=0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;for(;i++;printf(&quot;%d&quot;,i)) ;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;before entering into the for loop the checking condition is &quot;evaluated&quot;. Here it evaluates to 0 (false) and comes out of the loop, and i is incremented (note the semicolon after the for loop).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;40)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; char s[]={&#39;a&#39;,&#39;b&#39;,&#39;c&#39;,&#39;\n&#39;,&#39;c&#39;,&#39;\0&#39;};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; char *p,*str,*str1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; p=&amp;amp;s[3];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; str=p;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; str1=s;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; printf(&quot;%d&quot;,++*p + ++*str1-32);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;M&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p is pointing to character &#39;\n&#39;.str1 is pointing to character &#39;a&#39; ++*p meAnswer:&quot;p is pointing to &#39;\n&#39; and that is incremented by one.&quot; the ASCII value of &#39;\n&#39; is 10. then it is incremented to 11. the value of ++*p is 11. ++*str1 meAnswer:&quot;str1 is pointing to &#39;a&#39; that is incremented by 1 and it becomes &#39;b&#39;. ASCII value of &#39;b&#39; is 98. both 11 and 98 is added and result is subtracted from 32. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i.e. (11+98-32)=77(&quot;M&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;41)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; struct xx&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int x=3;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char name[]=&quot;hello&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct xx *s=malloc(sizeof(struct xx));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;,s-&amp;gt;x);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%s&quot;,s-&amp;gt;name);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Initialization should not be done for structure members inside the structure declaration&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;42)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct xx&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; int x;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; struct yy&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char s;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct xx *p;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; };&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;struct yy *q;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler Error&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;in the end of nested structure yy a member have to be declared.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;43)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;extern int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;i=20;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d&quot;,sizeof(i));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 14pt;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Linker error: undefined symbol &#39;_i&#39;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;extern declaration specifies that the variable i is defined somewhere else. The compiler passes the external variable to be resolved by the linker. So compiler doesn&#39;t find an error. During linking the linker searches for the definition of i. Since it is not found the linker flags an error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;44)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d&quot;, out);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int out=100;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error: undefined symbol out in function main.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The rule is that a variable is available for use from the point of declaration. Even though a is a global variable, it is not available for main. Hence an error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;45)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;extern out;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d&quot;, out);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int out=100;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation:&lt;/i&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;This is the correct way of writing the previous program.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;46)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;show();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;void show()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;I&#39;m the greatest&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compier error: Type mismatch in redeclaration of show.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;When the compiler sees the function show it doesn&#39;t know anything about it. So the default return type (ie, int) is assumed. But when compiler sees the actual definition of show mismatch occurs since it is declared as void. Hence the error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The solutions are as follows:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;1. declare void show() in main() .&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;2. define show() before main().&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;3. declare extern void show() before the use of show().&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;47)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main( )&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: 0.25in;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp; int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}};&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp; printf(“%u %u %u %d \n”,a,*a,**a,***a);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;100, 100, 100, 2&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.75in; text-align: justify; text-indent: 0.25in;&quot;&gt;114, 104, 102, 3&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The given array is a 3-D one. It can also be viewed as a 1-D array. &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-size: 11pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 0.75in;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 14.8pt;&quot;&gt;   &lt;td style=&quot;border: 1pt solid windowtext; height: 14.8pt; padding: 0in 5.4pt; width: 21.8pt;&quot; valign=&quot;top&quot; width=&quot;29&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 24.1pt;&quot; valign=&quot;top&quot; width=&quot;32&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;4&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 22.5pt;&quot; valign=&quot;top&quot; width=&quot;30&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;7&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 22.5pt;&quot; valign=&quot;top&quot; width=&quot;30&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;8&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 27pt;&quot; valign=&quot;top&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;3&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 22.5pt;&quot; valign=&quot;top&quot; width=&quot;30&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;4&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 27pt;&quot; valign=&quot;top&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 22.5pt;&quot; valign=&quot;top&quot; width=&quot;30&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 27pt;&quot; valign=&quot;top&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 27pt;&quot; valign=&quot;top&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;3&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 27pt;&quot; valign=&quot;top&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;3&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 14.8pt; padding: 0in 5.4pt; width: 27pt;&quot; valign=&quot;top&quot; width=&quot;36&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;4&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp; 100&amp;nbsp; 102&amp;nbsp; 104&amp;nbsp; 106 108&amp;nbsp;&amp;nbsp; 110&amp;nbsp; 112&amp;nbsp; 114&amp;nbsp; 116&amp;nbsp;&amp;nbsp; 118&amp;nbsp;&amp;nbsp; 120&amp;nbsp;&amp;nbsp; 122&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;thus, for the first printf statement a, *a, **a&amp;nbsp; give address of&amp;nbsp; first element . since the indirection ***a gives the value. Hence, the first line of the output.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;for the second printf a+1 increases in the third dimension thus points to value at 114, *a+1 increments in second dimension thus points to 104, **a +1 increments the first dimension thus points to 102 and ***a+1 first gets the value at first location and then increments it by 1. Hence, the output.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;48)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main( )&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp; int a[ ] = {10,20,30,40,50},j,*p;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: 0.25in;&quot;&gt;&amp;nbsp; for(j=0; j&amp;lt;5; j++)&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: 0.25in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;printf(“%d” ,*a); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;a++;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p = a;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp; for(j=0; j&amp;lt;5; j++) &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;printf(“%d ” ,*p); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;p++;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error: lvalue required.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;Error is in line with statement a++. The operand must be an lvalue and may be of any of scalar type for the any operator, array name only when subscripted is an lvalue. Simply array name is a non-modifiable lvalue.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;49)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main( )&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;static int&amp;nbsp; a[ ]&amp;nbsp;&amp;nbsp; = {0,1,2,3,4};&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;int&amp;nbsp; *p[ ] = {a,a+1,a+2,a+3,a+4};&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;int&amp;nbsp; **ptr =&amp;nbsp; p;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;ptr++;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;printf(“\n %d&amp;nbsp; %d&amp;nbsp; %d”, ptr-p, *ptr-a, **ptr); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;*ptr++;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;printf(“\n %d&amp;nbsp; %d&amp;nbsp; %d”, ptr-p, *ptr-a, **ptr); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;*++ptr;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: 0.25in;&quot;&gt;&amp;nbsp;printf(“\n %d&amp;nbsp; %d&amp;nbsp; %d”, ptr-p, *ptr-a, **ptr); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify; text-indent: 0.25in;&quot;&gt;&amp;nbsp;++*ptr;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(“\n %d&amp;nbsp; %d&amp;nbsp; %d”, ptr-p, *ptr-a, **ptr); &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/i&gt;&lt;/b&gt;&lt;i&gt;111&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 333&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 344&lt;/i&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;Let us consider the array and the two pointers with some address&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 4in; text-align: justify; text-indent: 0.25in;&quot;&gt;&lt;b&gt;a&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 1.75in;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;0&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;1&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;2&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;3&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;4&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 102&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 104&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 106&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 108&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1.75in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;p&lt;/b&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 1.75in;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;100&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;102&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;104&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;106&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.5in;&quot; valign=&quot;top&quot; width=&quot;48&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;108&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;1000&amp;nbsp;&amp;nbsp;&amp;nbsp; 1002&amp;nbsp;&amp;nbsp;&amp;nbsp; 1004&amp;nbsp;&amp;nbsp;&amp;nbsp; 1006&amp;nbsp;&amp;nbsp;&amp;nbsp; 1008&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1.75in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;ptr&amp;nbsp; &lt;/b&gt;&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 1.75in;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.6in;&quot; valign=&quot;top&quot; width=&quot;58&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;1000&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1.75in; text-align: justify;&quot;&gt;2000&lt;span style=&quot;font-size: 11pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;color: blue; margin-left: 1in;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;After execution of the instruction ptr++ value in ptr becomes 1002, if scaling factor for integer is 2 bytes. Now ptr – p is value in ptr – starting location of array p, (1002 – 1000) / (scaling factor) = 1,&amp;nbsp; *ptr – a = value at address pointed by ptr – starting value of array a, 1002 has a value 102&amp;nbsp; so the value is (102 – 100)/(scaling factor) = 1,&amp;nbsp; **ptr is the value stored in the location pointed by&amp;nbsp; the pointer of ptr = value pointed by value pointed by 1002 = value pointed by 102 = 1. Hence the output of the firs printf is&amp;nbsp; 1, 1, 1.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;color: blue; margin-left: 1in;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;After execution of *ptr++ increments value of the value in ptr by scaling factor, so it becomes1004. Hence, the outputs for the second printf are ptr – p = 2, *ptr – a = 2, **ptr = 2. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;color: blue; margin-left: 1in;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;After execution of *++ptr increments value of the value in ptr by scaling factor, so it becomes1004. Hence, the outputs for the third printf are ptr – p = 3, *ptr – a = 3, **ptr = 3. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;color: blue; margin-left: 1in;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;After execution of ++*ptr value in ptr remains the same, the value pointed by the value is incremented by the scaling factor. So the value in array p at location 1006 changes from 106 10 108,. Hence, the outputs for the fourth printf are ptr – p = 1006 – 1000 = 3, *ptr – a = 108 – 100 = 4, **ptr = 4. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;50)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main( )&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;char&amp;nbsp; *q;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;int&amp;nbsp; j;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;for (j=0; j&amp;lt;3; j++) scanf(“%s” ,(q+j));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;for (j=0; j&amp;lt;3; j++) printf(“%c” ,*(q+j));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;for (j=0; j&amp;lt;3; j++) printf(“%s” ,(q+j));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;Here we have only one pointer to type char and since we take input in the same pointer thus we keep writing over in the same location, each time shifting the pointer value by 1. Suppose the inputs are MOUSE,&amp;nbsp; TRACK and VIRTUAL. Then for the first input suppose the pointer starts at location 100 then the input one is stored as&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 1in;&quot;&gt;&lt;tbody&gt;
&lt;tr style=&quot;height: 18.4pt;&quot;&gt;   &lt;td style=&quot;border: 1pt solid windowtext; height: 18.4pt; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;M&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 18.4pt; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;O&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 18.4pt; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h3 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;U&lt;/span&gt;&lt;/h3&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 18.4pt; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;S&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 18.4pt; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;E&lt;/div&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; height: 18.4pt; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;\0&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;When the second input is given the pointer is incremented as j value becomes 1, so the input is filled in memory starting from 101.&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 1in;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;M&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;T&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;R&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;A&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;C&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;K&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 0.4in;&quot; valign=&quot;top&quot; width=&quot;38&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;\0&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;The third input&amp;nbsp; starts filling from the location 102&lt;/div&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;MsoNormalTable&quot; style=&quot;border-collapse: collapse; border: medium none; color: blue; margin-left: 1in;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;   &lt;td style=&quot;border: 1pt solid windowtext; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;M&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;T&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;V&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;I&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;R&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;T&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;U&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;A&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;h2 style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;L&lt;/span&gt;&lt;/h2&gt;&lt;/td&gt;   &lt;td style=&quot;border-color: windowtext windowtext windowtext -moz-use-text-color; border-style: solid solid solid none; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 34.05pt;&quot; valign=&quot;top&quot; width=&quot;45&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;text-align: justify;&quot;&gt;\0&lt;/div&gt;&lt;/td&gt;  &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.75in; text-align: justify; text-indent: 0.25in;&quot;&gt;This is the final value stored .&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;The first printf prints the values at the position q, q+1 and q+2&amp;nbsp; = M T V&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;The second printf prints three strings starting from locations q, q+1, q+2&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.75in; text-align: justify; text-indent: 0.25in;&quot;&gt;&amp;nbsp;i.e&amp;nbsp; MTVIRTUAL, TVIRTUAL and VIRTUAL.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;font-size: 13pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;51)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main( )&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;void *vp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;char ch = ‘g’, *cp = “goofy”;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;int j = 20;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;vp = &amp;amp;ch;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;printf(“%c”, *(char *)vp);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;vp = &amp;amp;j;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;printf(“%d”,*(int *)vp);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;vp = cp;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;printf(“%s”,(char *)vp + 3);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; g20fy&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;Since a void pointer is used it can be type casted to any&amp;nbsp; other type pointer. vp = &amp;amp;ch&amp;nbsp; stores address of char ch and the next statement prints the value stored in vp after type casting it to the proper data type pointer. the output is ‘g’. Similarly&amp;nbsp; the output from second printf is ‘20’. The third printf statement type casts it to print the string from the 4&lt;sup&gt;th&lt;/sup&gt; value hence the output is ‘fy’.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.25in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;52)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main ( )&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;static char *s[ ]&amp;nbsp; = {“black”, “white”, “yellow”, “violet”};&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;char **ptr[ ] = {s+3, s+2, s+1, s}, ***p;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;p = ptr;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;**++p;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;printf(“%s”,*--*++p + 3);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ck&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;color: blue; margin-left: 1in;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;In this problem we have an array of char pointers pointing to start of 4 strings. Then we have ptr which is a pointer to a pointer of type char and a variable p which is a pointer to a pointer to a pointer of type char. p hold the initial value of ptr, i.e. p = s+3. The next statement increment value in p by 1 , thus now value of p =&amp;nbsp; s+2. In the printf statement the expression is evaluated *++p causes gets value s+1 then the pre decrement is executed and we get s+1 – 1 = s . the indirection operator now gets the value from the array of s and adds 3 to the starting address. The string is printed starting from this position. Thus, the output is ‘ck’.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyTextIndent&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;53)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;int&amp;nbsp; i, n;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;char *x = “girl”;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;n = strlen(x);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;*x = x[n];&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;for(i=0; i&amp;lt;n; ++i)&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp; {&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;printf(“%s\n”,x);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;x++;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;}&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;(blank space)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;irl&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;rl&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;l&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;Explanation:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoBodyText&quot; style=&quot;color: blue; margin-left: 1in;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Here a string (a pointer to char) is initialized with a value “girl”.&amp;nbsp; The strlen function returns the length of the string, thus n has a value 4. The next statement assigns value at the nth location (‘\0’) to the first location. Now the string becomes “\0irl” . Now the printf statement prints the string after each iteration it increments it starting position.&amp;nbsp; Loop starts from 0 to 4. The first time x[0] = ‘\0’ hence it prints nothing and pointer value is incremented. The second time it prints from x[1] i.e “irl” and the third time it prints “rl” and the last time it prints “l” and the loop terminates.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;54)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i,j;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&amp;lt;=10;i++)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j+=5;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(i&amp;lt;5);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Runtime error: Abnormal program termination. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert failed (i&amp;lt;5), &amp;lt;file name&amp;gt;,&amp;lt;line number&amp;gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;asserts are used during debugging to make sure that certain conditions are satisfied. If assertion fails, the program will terminate reporting the same. After debugging use,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #undef NDEBUG&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;and this will disable all the assertions from the source code. Assertion&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;is a good debugging tool to make use of.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;55)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=-1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; +i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;i = %d, +i = %d \n&quot;,i,+i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;i = -1, +i = -1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify; text-indent: 3.75pt;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Unary + is the only dummy operator in C. Where-ever it comes you can just ignore it just because it has no effect in the expressions (hence the name dummy operator).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;56)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What are the files which are automatically opened when a C file is executed?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;stdin, stdout, stderr (standard input,standard output,standard error).&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;57) what will be the position of the file marker?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a: fseek(ptr,0,SEEK_SET);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b: fseek(ptr,0,SEEK_CUR);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer :&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a: The SEEK_SET sets the file position marker to the starting of the file.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b: The SEEK_CUR sets the file position marker to the current position&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; of the file.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;58)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char name[10],s[12];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot; \&quot;%[^\&quot;]\&quot;&quot;,s);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; How scanf will execute? &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;First it checks for the leading white space and discards it.Then it matches with a quotation mark and then it&amp;nbsp; reads all character upto another quotation mark.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;59)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is the problem with the following code segment?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ((fgets(receiving array,50,file_ptr)) != EOF)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer &amp;amp; Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;fgets returns a pointer. So the correct end of file check is checking for != NULL.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;60)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;Runtime error : Stack overflow.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 75.75pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main function calls itself again and again. Each time the function is called its return address is stored in the call stack. Since there is no condition to terminate the function call, the call stack overflows at runtime. So it terminates the program and results in an error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;61)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char *cptr,c;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void *vptr,v;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=10;&amp;nbsp; v=0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cptr=&amp;amp;c; vptr=&amp;amp;v;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%c%v&quot;,c,v);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error (at line number 4): size of v is Unknown.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;You can create a variable of type void * but not of type void, since void is an empty type. In the second line you are creating variable vptr of type void * and v of type void hence an error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;62)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char *str1=&quot;abcd&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char str2[]=&quot;abcd&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d %d %d&quot;,sizeof(str1),sizeof(str2),sizeof(&quot;abcd&quot;));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;2 5 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;In first sizeof, str1 is a character pointer so it gives you the size of the pointer variable. In second sizeof the name str2 indicates the name of the array whose size is 5 (including the &#39;\0&#39; termination character). The third sizeof is similar to the second one.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;63)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char not;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not=!2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,not);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;! is a logical operator. In C the value 0 is considered to be the boolean value FALSE, and any non-zero value is considered to be the boolean value TRUE. Here 2 is a non-zero value so TRUE. !TRUE is FALSE (0) so it prints 0.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;64)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define FALSE -1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define TRUE&amp;nbsp;&amp;nbsp; 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define NULL&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main() {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; if(NULL)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts(&quot;NULL&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; else if(FALSE)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts(&quot;TRUE&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts(&quot;FALSE&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;TRUE&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The input program to the compiler after processing by the preprocessor is,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(0)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts(&quot;NULL&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if(-1)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts(&quot;TRUE&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts(&quot;FALSE&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Preprocessor doesn&#39;t replace the values given inside the double quotes. The check by if condition is boolean value false so it goes to else. In second if -1 is boolean value true hence &quot;TRUE&quot; is printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;65)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int k=1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d==1 is &quot;&quot;%s&quot;,k,k==1?&quot;TRUE&quot;:&quot;FALSE&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;1==1 is TRUE&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;When two strings are placed together (or separated by white-space) they are concatenated (this is called as &quot;stringization&quot; operation). So the string is as if it is given as &quot;%d==1 is %s&quot;. The conditional operator( ?: ) evaluates to &quot;TRUE&quot;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;66)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int y;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;y); // input given is 2000&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if( (y%4==0 &amp;amp;&amp;amp; y%100 != 0) || y%100 == 0 )&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d is a leap year&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d is not a leap year&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;2000 is a leap year&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;An ordinary program to check if leap year or not.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;67)&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define max 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #define int arr1[max]&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; typedef char arr2[max];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr1 list={0,1,2,3,4};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arr2 name=&quot;name&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d %s&quot;,list[0],name);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error (in the line arr1 list = {0,1,2,3,4})&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;arr2 is declared of type array of size 5 of characters. So it can be used to declare the variable name of the type arr2. But it is not the case of arr1. Hence an error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Rule of Thumb: &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;#defines are used for textual replacement whereas typedefs are used for declaring new types.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;68)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=10;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;extern int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=20;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;const volatile unsigned i=30;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;30,20,10&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 75.75pt; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&#39;{&#39; introduces new block and thus new scope. In the innermost block i is declared as, &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const volatile unsigned&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;which is a valid declaration. i is assumed of type int. So printf prints 30. In the next block, i has value 20 and so printf prints 20. In the outermost block, i is declared as extern, so no storage space is allocated for it. After compilation is over the linker resolves it to global variable i (since it is the only variable visible there). So it prints i&#39;s value as 10.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;69)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; int *j;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=10;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; j=&amp;amp;i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d&quot;,*j);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;10&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The variable i is a block level variable and the visibility is inside that block only. But the lifetime of i is lifetime of the function so it lives upto the exit of main function. Since the i is still allocated space, *j prints the value stored in i since j points i.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;70)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=-1;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;i = %d, -i = %d \n&quot;,i,-i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i = -1, -i = 1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;-i is executed and this execution doesn&#39;t affect the value of i. In printf first you just print the value of i. After that the value of the expression -i = -(-1) is printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;71)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; const int i=4;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; float j;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; j = ++i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; printf(&quot;%d&amp;nbsp; %f&quot;, i,++j);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation&lt;/i&gt;&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i is a constant. you cannot change the value of constant &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;72)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; int a[2][2][2] = { {10,2,3,4}, {5,6,7,8}&amp;nbsp; };&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; int *p,*q;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; p=&amp;amp;a[2][2][2];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; *q=***a;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; printf(&quot;%d..%d&quot;,*p,*q);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;garbagevalue..1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p=&amp;amp;a[2][2][2]&amp;nbsp; you declare only two 2D arrays. but you are trying to access the third 2D(which you are not declared) it will print garbage values. *q=***a starting address of a is assigned integer pointer. now q is pointing to starting address of a.if you print *q meAnswer:it will print first element of 3D array.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;73)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; register i=5;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char j[]= &quot;hello&quot;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%s&amp;nbsp; %d&quot;,j,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;hello 5&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;if you declare i as register&amp;nbsp; compiler will treat it as ordinary integer and it will take integer value. i value may be&amp;nbsp; stored&amp;nbsp; either in register&amp;nbsp; or in memory.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;74)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; int i=5,j=6,z;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; printf(&quot;%d&quot;,i+++j);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;11&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;the expression i+++j is treated as (i++ + j)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;76)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct aaa{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct aaa *prev;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct aaa *next;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;struct aaa abc,def,ghi,jkl;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int x=100;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;abc.i=0;abc.prev=&amp;amp;jkl;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;abc.next=&amp;amp;def;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;def.i=1;def.prev=&amp;amp;abc;def.next=&amp;amp;ghi;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;ghi.i=2;ghi.prev=&amp;amp;def;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;ghi.next=&amp;amp;jkl;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;jkl.i=3;jkl.prev=&amp;amp;ghi;jkl.next=&amp;amp;abc;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;x=abc.next-&amp;gt;next-&amp;gt;prev-&amp;gt;next-&amp;gt;i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d&quot;,x);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; above all statements form a double circular linked list;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;abc.next-&amp;gt;next-&amp;gt;prev-&amp;gt;next-&amp;gt;i &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;this one points to &quot;ghi&quot; node the value of at particular node is 2.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;77)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct point&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int x;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int y;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;struct point origin,*pp;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;pp=&amp;amp;origin;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;origin is(%d%d)\n&quot;,(*pp).x,(*pp).y);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;origin is (%d%d)\n&quot;,pp-&amp;gt;x,pp-&amp;gt;y);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;origin is(0,0)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;origin is(0,0) &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;pp is a pointer to structure. we can access the elements of the structure either with arrow mark or with indirection operator. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Note:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Since structure point&amp;nbsp; is globally declared x &amp;amp; y are initialized as zeroes &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;78)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int i=_l_abc(10);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;%d\n&quot;,--i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int _l_abc(int i)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;return(i++);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;9&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation: &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;return(i++) it will first return i and then increments. i.e. 10 will be returned.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;79)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;char *p;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int *q;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;long *r;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;p=q=r=0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;p++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;q++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;r++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%p...%p...%p&quot;,p,q,r);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;0001...0002...0004&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;++ operator&amp;nbsp; when applied to pointers increments address according to their corresponding data-types.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;80)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;char c=&#39; &#39;,x,convert(z);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;getc(c);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;if((c&amp;gt;=&#39;a&#39;) &amp;amp;&amp;amp; (c&amp;lt;=&#39;z&#39;))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;x=convert(c);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%c&quot;,x);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;convert(z)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; return z-32;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;declaration of convert and format of getc() are wrong. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;81)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main(int argc, char **argv)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;enter the character&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;getchar();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;sum(argv[1],argv[2]);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;sum(num1,num2)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int num1,num2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;return num1+num2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Compiler error.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;argv[1] &amp;amp; argv[2] are strings. They are passed to the function sum without converting it to integer values.&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;82)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # include &amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int one_d[]={1,2,3};&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int *ptr; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;ptr=one_d;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;ptr+=3;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d&quot;,*ptr);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;garbage value&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;ptr pointer is pointing to out of the array range of one_d.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;83)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;aaa() {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; printf(&quot;hi&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;bbb(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;hello&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;ccc(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;bye&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; int (*ptr[3])();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; ptr[0]=aaa;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; ptr[1]=bbb;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; ptr[2]=ccc;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; ptr[2]();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;bye &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;ptr is array of pointers to functions of return type int.ptr[0] is assigned to address of the function aaa. Similarly ptr[1] and ptr[2] for bbb and ccc respectively. ptr[2]() is in effect of writing ccc(), since ptr[2] points to ccc.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;85)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #include&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;FILE *ptr;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;char i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;ptr=fopen(&quot;zzz.c&quot;,&quot;r&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;while((i=fgetch(ptr))!=EOF)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%c&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;contents of zzz.c followed by an infinite loop&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;b&gt;&lt;i&gt;Explanation:&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The condition is checked against EOF, it should be checked against NULL.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;86)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int i =0;j=0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;if(i &amp;amp;&amp;amp; j++)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d..%d&quot;,i++,j);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;%d..%d,i,j);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;0..0 &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The value of i is 0. Since this information is enough to determine the truth value of the boolean expression. So the statement following the if statement is not executed.&amp;nbsp; The values of i and j remain unchanged and get printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;87)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;i = abc();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%d&quot;,i);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;abc()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;_AX = 1000;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;1000&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Normally the return value from the function is through the information from the accumulator. Here _AH is the pseudo global variable denoting the accumulator. Hence, the value of the accumulator is set 1000 so the function returns value 1000. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;88)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; main(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int t;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;for ( t=4;scanf(&quot;%d&quot;,&amp;amp;i)-t;printf(&quot;%d\n&quot;,i))&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d--&quot;,t--);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // If the inputs are 0,1,2,3 find the o/p&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4--0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3--1&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2--2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Let us assume some x= scanf(&quot;%d&quot;,&amp;amp;i)-t the values during execution &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; will be,&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -4&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -2&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;89)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; int a= 0;int b = 20;char x =1;char y =10;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; if(a,b,x,y)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;hello&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;hello &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The comma operator has associativity from left to right. Only the rightmost value is returned and the other values are evaluated and ignored. Thus the value of last variable y is returned to check in if. Since it is a non zero value if becomes true so, &quot;hello&quot; will be printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;90)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;unsigned int i;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;for(i=1;i&amp;gt;-2;i--)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;c aptitude&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i is an unsigned integer. It is compared with a signed value. Since the both types doesn&#39;t match, signed is promoted to unsigned value. The unsigned equivalent of -2 is a huge value so condition becomes false and control comes out of the loop. &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;91)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In the following pgm add a&amp;nbsp; stmt in the function&amp;nbsp; fun such that the address of &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&#39;a&#39; gets stored in &#39;j&#39;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;int * j;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; void fun(int **);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; fun(&amp;amp;j);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;void fun(int **k) {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; int a =0;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp; /* add a stmt here*/&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *k = &amp;amp;a&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The argument of the function is a pointer to a pointer.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;92)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What are the following notations of defining functions known as?&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int abc(int a,float b)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* some code */&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;ii.&amp;nbsp;&amp;nbsp;&amp;nbsp; int abc(a,b)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int a; float b;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* some code*/&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;i.&amp;nbsp; ANSI C notation&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;ii. Kernighan &amp;amp; Ritche notation &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;93)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;char *p;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;p=&quot;%d\n&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  p++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  p++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  printf(p-2,300);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 300&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The pointer points to % since it is incremented twice and again decremented by 2, it points to &#39;%d\n&#39; and 300 is printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;94)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main(){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;char a[100];&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;a[0]=&#39;a&#39;;a[1]]=&#39;b&#39;;a[2]=&#39;c&#39;;a[4]=&#39;d&#39;;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;abc(a);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;abc(char a[]){&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;a++; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;printf(&quot;%c&quot;,*a);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;a++;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;printf(&quot;%c&quot;,*a);&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The base address is modified only in function and as a result a points to &#39;b&#39; then after incrementing to &#39;c&#39; so bc will be printed.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;95)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; func(a,b)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int a,b;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;return( a= (a==b) );&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;main()&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int process(),func();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;printf(&quot;The value of process is %d !\n &quot;,process(func,3,6));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;process(pf,val1,val2)&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int (*pf) ();&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;int val1,val2;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;return((*pf) (val1,val2));&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The value if process is 0 !&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The function &#39;process&#39; has 3 parameters - 1, a pointer to another function&amp;nbsp; 2 and 3, integers. When this function is invoked from main, the following substitutions for formal parameters take place: func for pf, 3 for val1 and 6 for val2. This function returns the result of the operation performed by the function &#39;func&#39;. The function func has two integer parameters. The formal parameters are substituted as 3 for a and 6 for b. since 3 is not equal to 6, a==b returns 0. therefore the function returns 0 which in turn is returned by the function &#39;process&#39;.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; margin-left: 1in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;96)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static int i=5;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(--i){&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; main();&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%d &quot;,i);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Answer:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;0 0 0 0&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The variable &quot;I&quot; is declared as static, hence memory for I will be allocated for only once, as it encounters the statement. The function main() will be called recursively unless I becomes equal to 0, and since main() is recursively called, so the value of static I ie., 0 will be printed every time the control is returned.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;97)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int k=ret(sizeof(float));&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n here value is %d&quot;,++k);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;int ret(int ret)&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret += 2.5;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(ret);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;Here value is 7&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;The int ret(int ret), ie., the function name and the argument name can be the same.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Firstly, the function ret() is called in which the sizeof(float) ie., 4 is passed,&amp;nbsp; after the first expression the value in ret will be 6, as ret is integer hence the value stored in ret will have implicit type conversion from float to int. The ret is returned in main() it is printed after and preincrement.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;98)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char a[]=&quot;12345\0&quot;;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=strlen(a);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;here in 3 %d\n&quot;,++i);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;here in 3 6&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The char array &#39;a&#39; will hold the initialized string, whose length will be counted from 0 till the null character. Hence the &#39;I&#39; will hold the value equal to 5, after the pre-increment in the printf statement, the 6 will be printed.&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;99)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned giveit=-1;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int gotit;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%u &quot;,++giveit);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%u \n&quot;,gotit=--giveit);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;0 65535&lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; text-align: justify;&quot;&gt;100)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void main()&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;{&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; char a[]=&quot;\0&quot;;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(printf(&quot;%s\n&quot;,a))&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Ok here \n&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Forget it\n&quot;);&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;}&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;Answer:&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 0.5in; text-align: justify; text-indent: 0.5in;&quot;&gt;&amp;nbsp;Ok here &lt;/div&gt;&lt;div class=&quot;MsoPlainText&quot; style=&quot;color: blue; text-align: justify; text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12pt;&quot;&gt;Explanation:&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;color: blue; margin-left: 1.5in; text-align: justify;&quot;&gt;Printf will return how many characters does it print. Hence printing a null character returns 1 which makes the if statement true, thus &quot;Ok here&quot; is printed.&lt;/div&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/5135023740173334146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/5135023740173334146'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/07/c-language-aptitude-questions-answers.html' title='C-Language Aptitude Questions &amp; Answers'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-8001180597581314212</id><published>2011-07-25T12:50:00.001+05:30</published><updated>2011-07-25T12:50:37.882+05:30</updated><title type='text'>Contact Us</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi42AtN1_MMUkB_CBqHxnW0GFOcjHhkL7oSn6QZNGdVd7HM8uolOeNo9QAf2_mM_Fvj3-SrDCRsYUFvyd9LxNughUsIWEP4YRz0-Nsjz_AhksMsbW7X_aMFvBtMzS2i7kp2GIbggeGUJ4NA/s1600/Hari+Contact+Us+7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi42AtN1_MMUkB_CBqHxnW0GFOcjHhkL7oSn6QZNGdVd7HM8uolOeNo9QAf2_mM_Fvj3-SrDCRsYUFvyd9LxNughUsIWEP4YRz0-Nsjz_AhksMsbW7X_aMFvBtMzS2i7kp2GIbggeGUJ4NA/s1600/Hari+Contact+Us+7.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/8001180597581314212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/8001180597581314212'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/07/contact-us.html' title='Contact Us'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi42AtN1_MMUkB_CBqHxnW0GFOcjHhkL7oSn6QZNGdVd7HM8uolOeNo9QAf2_mM_Fvj3-SrDCRsYUFvyd9LxNughUsIWEP4YRz0-Nsjz_AhksMsbW7X_aMFvBtMzS2i7kp2GIbggeGUJ4NA/s72-c/Hari+Contact+Us+7.jpg" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-950043378595886675.post-664642680860589392</id><published>2011-07-25T12:48:00.000+05:30</published><updated>2011-07-25T12:48:16.718+05:30</updated><title type='text'>About Us</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta; font-size: x-large;&quot;&gt;&lt;b&gt;About C2Java:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;The C2Hari&amp;nbsp; highly educated,   skilled,  experts in their field, committed to their work and above all  very   experienced. Here C2Hari experts are highly familiar  with the   analytical skills, which they use in pin pointing the given  assignment  and  sorting out all the queries of the clients. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;color: blue;&quot;&gt;        &lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;        &lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;color: blue;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   C2Hari is absolutely an Education related blog/Website, we offer a    complete range of C/C++ Languages with All FAQ&#39;s &amp;nbsp;given   below:-&lt;/div&gt;&lt;div&gt;&lt;ul style=&quot;color: black;&quot; type=&quot;circle&quot;&gt;&lt;li style=&quot;color: blue;&quot;&gt;C-Language&lt;/li&gt;
&lt;li style=&quot;color: blue;&quot;&gt;C++ / CPP&lt;/li&gt;
&lt;li style=&quot;color: blue;&quot;&gt;C-Language FAQ&#39;s&lt;/li&gt;
&lt;li style=&quot;color: blue;&quot;&gt;C++ FAQ&#39;s&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta; font-size: x-large;&quot;&gt;&lt;b&gt;Contact Us:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqZpWhwmvCeL29xhcFFPlXNLQf4AMSdIqxOOvt6dL7BRvZdL9Z6WKNMuTgfWWtUuimrR7_jSAf8LO9w2AIOMvG-gJTUbiXYaMCyHW1bJTjWDWVFlqwHU55RpAdVEyvxPfmOvERSqu3WYD8/s1600/Hari+Contact+Us+7.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqZpWhwmvCeL29xhcFFPlXNLQf4AMSdIqxOOvt6dL7BRvZdL9Z6WKNMuTgfWWtUuimrR7_jSAf8LO9w2AIOMvG-gJTUbiXYaMCyHW1bJTjWDWVFlqwHU55RpAdVEyvxPfmOvERSqu3WYD8/s1600/Hari+Contact+Us+7.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul type=&quot;circle&quot;&gt;&lt;li style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/664642680860589392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/950043378595886675/posts/default/664642680860589392'/><link rel='alternate' type='text/html' href='http://c2hari.blogspot.com/2011/07/about-us.html' title='About Us'/><author><name>H@ri</name><uri>http://www.blogger.com/profile/11018317223946890228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqZpWhwmvCeL29xhcFFPlXNLQf4AMSdIqxOOvt6dL7BRvZdL9Z6WKNMuTgfWWtUuimrR7_jSAf8LO9w2AIOMvG-gJTUbiXYaMCyHW1bJTjWDWVFlqwHU55RpAdVEyvxPfmOvERSqu3WYD8/s72-c/Hari+Contact+Us+7.jpg" height="72" width="72"/></entry></feed>