tag:blogger.com,1999:blog-26502956138168338572024-03-21T02:26:37.670-07:00Purvi's BlogPurvi's work and search in .net technologies.Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.comBlogger901125tag:blogger.com,1999:blog-2650295613816833857.post-60168376616853833342013-11-20T22:34:00.002-08:002013-11-20T22:34:33.423-08:00ASP.NET Session Timeout Control + jQuery Dialog + Countdown Timer<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px; margin: 0px; position: relative;">
ASP.NET Session Timeout Control + jQuery Dialog + Countdown Timer</h3>
<div>
_______________________________________________________________________</div>
<div>
<br /></div>
<div>
Hello Friends in one of the Blog i find the Code for Sessiontime out with Dialog box.. you can dowload demo code with Below site</div>
<div>
<br /></div>
<div>
<a href="http://programmerramblings.blogspot.in/2009/08/aspnet-session-timeout-control-jquery.html">http://programmerramblings.blogspot.in/2009/08/aspnet-session-timeout-control-jquery.html</a></div>
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px; margin: 0px; position: relative;">
<br /></h3>
<div>
<br /></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com18tag:blogger.com,1999:blog-2650295613816833857.post-12821039629993478182013-10-09T22:11:00.001-07:002013-10-09T22:11:47.900-07:00How to Create Crystal Report in asp.net<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><u><span style="color: #ff0066; font-size: 18.0pt; line-height: 115%; mso-bidi-font-size: 11.0pt;">How
to Create Crystal Report in asp.net<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">To implement crystal reports first design the table in database
and give name</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">UserInfomation</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableLightListAccent3" style="border-collapse: collapse; border: none; mso-border-alt: solid #9BBB59 1.0pt; mso-border-themecolor: accent3; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184; width: 532px;">
<tbody>
<tr style="height: 17.5pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;">
<td style="background: #9BBB59; border-bottom: none; border-left: solid #9BBB59 1.0pt; border-right: none; border-top: solid #9BBB59 1.0pt; height: 17.5pt; mso-background-themecolor: accent3; mso-border-left-themecolor: accent3; mso-border-top-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: white; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ColumnName</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
<td style="background: #9BBB59; border-bottom: none; border-left: none; border-right: solid #9BBB59 1.0pt; border-top: solid #9BBB59 1.0pt; height: 17.5pt; mso-background-themecolor: accent3; mso-border-right-themecolor: accent3; mso-border-top-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: white; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">DataType</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr style="height: 14.75pt; mso-yfti-irow: 0;">
<td style="border-right: none; border: solid #9BBB59 1.0pt; height: 14.75pt; mso-border-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">UserId</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
<td style="border-left: none; border: solid #9BBB59 1.0pt; height: 14.75pt; mso-border-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Int(set identity property=true)</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-left: solid #9BBB59 1.0pt; border: none; mso-border-left-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">UserName</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
<td style="border-right: solid #9BBB59 1.0pt; border: none; mso-border-right-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">varchar(50)</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
<tr style="height: 14.35pt; mso-yfti-irow: 2;">
<td style="border-right: none; border: solid #9BBB59 1.0pt; height: 14.35pt; mso-border-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">FirstName</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
<td style="border-left: none; border: solid #9BBB59 1.0pt; height: 14.35pt; mso-border-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Varchar(50)</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
<tr style="height: 14.35pt; mso-yfti-irow: 3;">
<td style="border-left: solid #9BBB59 1.0pt; border: none; height: 14.35pt; mso-border-left-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">LastName</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
<td style="border-right: solid #9BBB59 1.0pt; border: none; height: 14.35pt; mso-border-right-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">varchar(50)</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
<tr style="height: 15.25pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;">
<td style="border-right: none; border: solid #9BBB59 1.0pt; height: 15.25pt; mso-border-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Location</span></b><b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></b></div>
</td>
<td style="border-left: none; border: solid #9BBB59 1.0pt; height: 15.25pt; mso-border-themecolor: accent3; padding: 0in 5.4pt 0in 5.4pt; width: 50.0%;" valign="top" width="50%">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">varchar(50)</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After completion of table creation enter some dummy data because
we need to use that data to populate reports. Now Open visual studio 2008 and
create new website and open</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Default.aspx</span></b> <span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">page in</span> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Design</span></b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">mode after that open Toolbox from that drag and drop</span> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">MicrosoftReportViewer</span></b> <span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">control from</span> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Reporting</span></b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">tab </span><o:p></o:p></span></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://3.bp.blogspot.com/-eVh_qbdVrm0/TsKsTzU_NCI/AAAAAAAAAvI/qnwMDty_BxM/s1600/ReportingTab.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1040" type="#_x0000_t75"
alt="http://3.bp.blogspot.com/-eVh_qbdVrm0/TsKsTzU_NCI/AAAAAAAAAvI/qnwMDty_BxM/s1600/ReportingTab.png"
href="http://3.bp.blogspot.com/-eVh_qbdVrm0/TsKsTzU_NCI/AAAAAAAAAvI/qnwMDty_BxM/s1600/ReportingTab.png"
style='width:159pt;height:155.25pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title="ReportingTab"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://3.bp.blogspot.com/-eVh_qbdVrm0/TsKsTzU_NCI/AAAAAAAAAvI/qnwMDty_BxM/s1600/ReportingTab.png" border="0" height="207" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image002.jpg" v:shapes="Picture_x0020_1" width="212" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After drag and drop MicrosoftReportViewer in your page select
ReportViewer control and click on smart tag in right side and select</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Design a new Report</span> </b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><br />
<br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><o:p></o:p></span></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://3.bp.blogspot.com/-XiOjAp00K5U/TsKsQxUQmkI/AAAAAAAAAus/R-2EHnRXCww/s1600/DesignReport.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_2" o:spid="_x0000_i1039" type="#_x0000_t75" alt="http://3.bp.blogspot.com/-XiOjAp00K5U/TsKsQxUQmkI/AAAAAAAAAus/R-2EHnRXCww/s640/DesignReport.png"
href="http://3.bp.blogspot.com/-XiOjAp00K5U/TsKsQxUQmkI/AAAAAAAAAus/R-2EHnRXCww/s1600/DesignReport.png"
style='width:480pt;height:258pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png"
o:title="DesignReport"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://3.bp.blogspot.com/-XiOjAp00K5U/TsKsQxUQmkI/AAAAAAAAAus/R-2EHnRXCww/s640/DesignReport.png" border="0" height="344" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image004.jpg" v:shapes="Picture_x0020_2" width="640" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click on</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Design a new report</span> </b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">now welcome window wizard will open</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://4.bp.blogspot.com/-KSPBQcciK6Q/TsKsZXQ7RwI/AAAAAAAAAwE/Q5xIFBNmfoo/s1600/WelcomeWizard.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_3" o:spid="_x0000_i1038" type="#_x0000_t75" alt="http://4.bp.blogspot.com/-KSPBQcciK6Q/TsKsZXQ7RwI/AAAAAAAAAwE/Q5xIFBNmfoo/s400/WelcomeWizard.png"
href="http://4.bp.blogspot.com/-KSPBQcciK6Q/TsKsZXQ7RwI/AAAAAAAAAwE/Q5xIFBNmfoo/s1600/WelcomeWizard.png"
style='width:300pt;height:264pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png"
o:title="WelcomeWizard"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://4.bp.blogspot.com/-KSPBQcciK6Q/TsKsZXQ7RwI/AAAAAAAAAwE/Q5xIFBNmfoo/s400/WelcomeWizard.png" border="0" height="352" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image006.gif" v:shapes="Picture_x0020_3" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Now click on</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> <b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">Next</span> </b><span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">button after that new Data
Source Configuration Wizard will open in that click on New Connection button to
configure database connection. </span><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in;">
<br /></div>
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://1.bp.blogspot.com/-RKc8-6wYh50/TsKsTfAneaI/AAAAAAAAAvA/txv9KkmeQM0/s1600/NewConnection.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_4" o:spid="_x0000_i1037" type="#_x0000_t75" alt="http://1.bp.blogspot.com/-RKc8-6wYh50/TsKsTfAneaI/AAAAAAAAAvA/txv9KkmeQM0/s400/NewConnection.png"
href="http://1.bp.blogspot.com/-RKc8-6wYh50/TsKsTfAneaI/AAAAAAAAAvA/txv9KkmeQM0/s1600/NewConnection.png"
style='width:300pt;height:228.75pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png"
o:title="NewConnection"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://1.bp.blogspot.com/-RKc8-6wYh50/TsKsTfAneaI/AAAAAAAAAvA/txv9KkmeQM0/s400/NewConnection.png" border="0" height="305" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image008.gif" v:shapes="Picture_x0020_4" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Now one window will open to add new connection in that enter
Server Name and select authentication type either windows or SQL Server and
select database name after fill all the details click on Test Connection if the
connection path is correct then that will display Test connection succeeded.
After that click ok </span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://1.bp.blogspot.com/-iqDcHt3XMbE/TsKsOC0nYHI/AAAAAAAAAuM/v5aCeT9gClU/s1600/AddConnection.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_5" o:spid="_x0000_i1036" type="#_x0000_t75" alt="http://1.bp.blogspot.com/-iqDcHt3XMbE/TsKsOC0nYHI/AAAAAAAAAuM/v5aCeT9gClU/s1600/AddConnection.png"
href="http://1.bp.blogspot.com/-iqDcHt3XMbE/TsKsOC0nYHI/AAAAAAAAAuM/v5aCeT9gClU/s1600/AddConnection.png"
style='width:279.75pt;height:342.75pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png"
o:title="AddConnection"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://1.bp.blogspot.com/-iqDcHt3XMbE/TsKsOC0nYHI/AAAAAAAAAuM/v5aCeT9gClU/s1600/AddConnection.png" border="0" height="457" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image010.jpg" v:shapes="Picture_x0020_5" width="373" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click ok New database connection added to dropdown now click
on Next button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://1.bp.blogspot.com/-3ocR-DSzi1E/TsKsPnEnGnI/AAAAAAAAAuY/PZE1NJ5iO7I/s1600/DataSourceConfiguration.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_6" o:spid="_x0000_i1035" type="#_x0000_t75" alt="http://1.bp.blogspot.com/-3ocR-DSzi1E/TsKsPnEnGnI/AAAAAAAAAuY/PZE1NJ5iO7I/s400/DataSourceConfiguration.png"
href="http://1.bp.blogspot.com/-3ocR-DSzi1E/TsKsPnEnGnI/AAAAAAAAAuY/PZE1NJ5iO7I/s1600/DataSourceConfiguration.png"
style='width:300pt;height:228.75pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image011.png"
o:title="DataSourceConfiguration"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://1.bp.blogspot.com/-3ocR-DSzi1E/TsKsPnEnGnI/AAAAAAAAAuY/PZE1NJ5iO7I/s400/DataSourceConfiguration.png" border="0" height="305" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image012.gif" v:shapes="Picture_x0020_6" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Next it will display available Tables, views, Stored
Procedures and Functions in DataSource Configuration Wizard in that open Tables
section and select required table previously we created table with name</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><b><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">UserInformation</span></b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> <span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">now I am selecting that table from available list</span><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://4.bp.blogspot.com/-EwQT2kM_st0/TsKsXYrI86I/AAAAAAAAAvw/CzqG2tbXfSo/s1600/TableSelection.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_7" o:spid="_x0000_i1034" type="#_x0000_t75" alt="http://4.bp.blogspot.com/-EwQT2kM_st0/TsKsXYrI86I/AAAAAAAAAvw/CzqG2tbXfSo/s1600/TableSelection.png"
href="http://4.bp.blogspot.com/-EwQT2kM_st0/TsKsXYrI86I/AAAAAAAAAvw/CzqG2tbXfSo/s1600/TableSelection.png"
style='width:396.75pt;height:405pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image013.png"
o:title="TableSelection"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://4.bp.blogspot.com/-EwQT2kM_st0/TsKsXYrI86I/AAAAAAAAAvw/CzqG2tbXfSo/s1600/TableSelection.png" border="0" height="540" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image014.jpg" v:shapes="Picture_x0020_7" width="529" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click finish our report wizard populate with our selected
table now select that table and our Next button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://3.bp.blogspot.com/-XtzT1KFO4ZQ/TsKsVTyEOjI/AAAAAAAAAvc/qmljqBuZjlQ/s1600/ReportWizard.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_8" o:spid="_x0000_i1033" type="#_x0000_t75" alt="http://3.bp.blogspot.com/-XtzT1KFO4ZQ/TsKsVTyEOjI/AAAAAAAAAvc/qmljqBuZjlQ/s400/ReportWizard.png"
href="http://3.bp.blogspot.com/-XtzT1KFO4ZQ/TsKsVTyEOjI/AAAAAAAAAvc/qmljqBuZjlQ/s1600/ReportWizard.png"
style='width:300pt;height:265.5pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image015.png"
o:title="ReportWizard"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://3.bp.blogspot.com/-XtzT1KFO4ZQ/TsKsVTyEOjI/AAAAAAAAAvc/qmljqBuZjlQ/s400/ReportWizard.png" border="0" height="354" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image016.gif" v:shapes="Picture_x0020_8" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Next button it will display options to select Report
type either Tabular or Matrix now select Report Type and click Next Button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://1.bp.blogspot.com/-9EDXh6uN0Fg/TsKsUcNVChI/AAAAAAAAAvQ/j9cIcsiGoK8/s1600/ReportType.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_9" o:spid="_x0000_i1032" type="#_x0000_t75" alt="http://1.bp.blogspot.com/-9EDXh6uN0Fg/TsKsUcNVChI/AAAAAAAAAvQ/j9cIcsiGoK8/s400/ReportType.png"
href="http://1.bp.blogspot.com/-9EDXh6uN0Fg/TsKsUcNVChI/AAAAAAAAAvQ/j9cIcsiGoK8/s1600/ReportType.png"
style='width:300pt;height:267.75pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image017.png"
o:title="ReportType"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://1.bp.blogspot.com/-9EDXh6uN0Fg/TsKsUcNVChI/AAAAAAAAAvQ/j9cIcsiGoK8/s400/ReportType.png" border="0" height="357" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image018.gif" v:shapes="Picture_x0020_9" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Next Report Wizard display Design the table option
with available fields from previous selected table and give options like Page,
Group and Details these are used to display the data based on Groupwise etc.
Here we are doing simple crystal report sample I am not doing anything simply
click on Next Button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://2.bp.blogspot.com/-LGGgGhWMm-A/TsKsRyFapSI/AAAAAAAAAuw/eA1WuVZw8NM/s1600/DesignTable.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_10" o:spid="_x0000_i1031" type="#_x0000_t75" alt="http://2.bp.blogspot.com/-LGGgGhWMm-A/TsKsRyFapSI/AAAAAAAAAuw/eA1WuVZw8NM/s400/DesignTable.png"
href="http://2.bp.blogspot.com/-LGGgGhWMm-A/TsKsRyFapSI/AAAAAAAAAuw/eA1WuVZw8NM/s1600/DesignTable.png"
style='width:300pt;height:268.5pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image019.png"
o:title="DesignTable"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://2.bp.blogspot.com/-LGGgGhWMm-A/TsKsRyFapSI/AAAAAAAAAuw/eA1WuVZw8NM/s400/DesignTable.png" border="0" height="358" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image020.gif" v:shapes="Picture_x0020_10" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Next button Report wizard will display option to
select Table layout after select required table layout click on Next button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://1.bp.blogspot.com/-ttmNgsh-PtQ/TsKsSUw2csI/AAAAAAAAAu4/b6PtEXNorVw/s1600/LayOut.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_11" o:spid="_x0000_i1030" type="#_x0000_t75" alt="http://1.bp.blogspot.com/-ttmNgsh-PtQ/TsKsSUw2csI/AAAAAAAAAu4/b6PtEXNorVw/s400/LayOut.png"
href="http://1.bp.blogspot.com/-ttmNgsh-PtQ/TsKsSUw2csI/AAAAAAAAAu4/b6PtEXNorVw/s1600/LayOut.png"
style='width:300pt;height:270pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image021.png"
o:title="LayOut"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://1.bp.blogspot.com/-ttmNgsh-PtQ/TsKsSUw2csI/AAAAAAAAAu4/b6PtEXNorVw/s400/LayOut.png" border="0" height="360" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image022.gif" v:shapes="Picture_x0020_11" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Next button Report wizard will display option to
select Table style after select required table style click on Next button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://1.bp.blogspot.com/-8ULTbknDmdk/TsKsYKncBkI/AAAAAAAAAv8/pxPEZbkz8Cw/s1600/TableStyle.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_12" o:spid="_x0000_i1029" type="#_x0000_t75" alt="http://1.bp.blogspot.com/-8ULTbknDmdk/TsKsYKncBkI/AAAAAAAAAv8/pxPEZbkz8Cw/s400/TableStyle.png"
href="http://1.bp.blogspot.com/-8ULTbknDmdk/TsKsYKncBkI/AAAAAAAAAv8/pxPEZbkz8Cw/s1600/TableStyle.png"
style='width:300pt;height:271.5pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image023.png"
o:title="TableStyle"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://1.bp.blogspot.com/-8ULTbknDmdk/TsKsYKncBkI/AAAAAAAAAv8/pxPEZbkz8Cw/s400/TableStyle.png" border="0" height="362" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image024.gif" v:shapes="Picture_x0020_12" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Next button Report wizard will display Completing the
Report Wizard in that enter Report Name and click Finish button</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://3.bp.blogspot.com/-qUjJC4uOctU/TsKsOojLw1I/AAAAAAAAAuU/RzwH3R353HQ/s1600/CompleteReport.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_13" o:spid="_x0000_i1028" type="#_x0000_t75" alt="http://3.bp.blogspot.com/-qUjJC4uOctU/TsKsOojLw1I/AAAAAAAAAuU/RzwH3R353HQ/s400/CompleteReport.png"
href="http://3.bp.blogspot.com/-qUjJC4uOctU/TsKsOojLw1I/AAAAAAAAAuU/RzwH3R353HQ/s1600/CompleteReport.png"
style='width:300pt;height:270pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image025.png"
o:title="CompleteReport"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://3.bp.blogspot.com/-qUjJC4uOctU/TsKsOojLw1I/AAAAAAAAAuU/RzwH3R353HQ/s400/CompleteReport.png" border="0" height="360" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image026.gif" v:shapes="Picture_x0020_13" width="400" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After click Finish button now it will create new report if we open
our website Solution Explorer we have chance to see newly created report
Report1.rdlc and xsd file in App folder this xsd file contain our selected
database table.</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://2.bp.blogspot.com/-DJtNzv9zPzg/TsKsWfHUfDI/AAAAAAAAAvk/79Gvs51RQhw/s1600/SolutionExplorer.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_14" o:spid="_x0000_i1027" type="#_x0000_t75" alt="http://2.bp.blogspot.com/-DJtNzv9zPzg/TsKsWfHUfDI/AAAAAAAAAvk/79Gvs51RQhw/s1600/SolutionExplorer.png"
href="http://2.bp.blogspot.com/-DJtNzv9zPzg/TsKsWfHUfDI/AAAAAAAAAvk/79Gvs51RQhw/s1600/SolutionExplorer.png"
style='width:272.25pt;height:156pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image027.png"
o:title="SolutionExplorer"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://2.bp.blogspot.com/-DJtNzv9zPzg/TsKsWfHUfDI/AAAAAAAAAvk/79Gvs51RQhw/s1600/SolutionExplorer.png" border="0" height="208" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image028.jpg" v:shapes="Picture_x0020_14" width="363" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">After that Now Open Default.aspx page and select ReportViewer and
click smart tag in right side in that select Report Type</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://4.bp.blogspot.com/-7bNWr4lIaW8/TsKsVxmkSGI/AAAAAAAAAvg/9yhQtFpYQOU/s1600/SelectReport.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_15" o:spid="_x0000_i1026" type="#_x0000_t75" alt="http://4.bp.blogspot.com/-7bNWr4lIaW8/TsKsVxmkSGI/AAAAAAAAAvg/9yhQtFpYQOU/s640/SelectReport.png"
href="http://4.bp.blogspot.com/-7bNWr4lIaW8/TsKsVxmkSGI/AAAAAAAAAvg/9yhQtFpYQOU/s1600/SelectReport.png"
style='width:480pt;height:258.75pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image029.png"
o:title="SelectReport"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://4.bp.blogspot.com/-7bNWr4lIaW8/TsKsVxmkSGI/AAAAAAAAAvg/9yhQtFpYQOU/s640/SelectReport.png" border="0" height="345" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image030.jpg" v:shapes="Picture_x0020_15" width="640" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Once Report1.rdlc selected Open Default.aspx Source code it
contains code like this</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="background: yellow; border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><%</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">@</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Register</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Assembly</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="Microsoft.ReportViewer.WebForms, Version=9.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Namespace</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="Microsoft.Reporting.WebForms"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">TagPrefix</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="rsweb"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> <span style="background: yellow; border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;">%></span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><!</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">DOCTYPE</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">html</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">PUBLIC</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">"-//W3C//DTD XHTML 1.0
Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">html</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">xmlns</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="http://www.w3.org/1999/xhtml"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">head</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">runat</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="server"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">title</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Untitled Page</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">title</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">head</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">body</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">form</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">id</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="form1"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">runat</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="server"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">div</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">rsweb</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">:</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ReportViewer</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ID</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="ReportViewer1"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">runat</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="server"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Font-Names</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="Verdana"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Font-Size</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="8pt"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Height</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="342px"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Width</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="398px"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">LocalReport</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ReportPath</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="Report1.rdlc"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">DataSources</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">rsweb</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">:</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ReportDataSource</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">DataSourceId</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="ObjectDataSource1"</span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Name</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="MySampleDBDataSet_UserInformation"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">/></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">DataSources</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">LocalReport</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">rsweb</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">:</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ReportViewer</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">asp</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">:</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ObjectDataSource</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ID</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="ObjectDataSource1"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"> </span><span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">runat</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="server"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">SelectMethod</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="GetData"</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: red; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">TypeName</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">="MySampleDBDataSetTableAdapters.UserInformationTableAdapter"></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">asp</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">:</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">ObjectDataSource</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">div</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">form</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">body</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"></</span><span style="border: none windowtext 1.0pt; color: #a31515; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">html</span><span style="border: none windowtext 1.0pt; color: blue; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">If you above code Here we added referece of assembly for
Reportviewer that is necessary to run our report perfectly. Now Run your
application check the output that would be like this.</span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span></b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><u><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;">Demo</span></u></b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #f6f4ef; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; vertical-align: baseline;">
<b><u><span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span></u></b><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<table border="1" cellpadding="0" class="MsoNormalTable" style="background: #F6F4EF; border: dashed brown 1.0pt; mso-cellspacing: 1.5pt; mso-padding-alt: 0in 0in 0in 0in; mso-yfti-tbllook: 1184; width: 531px;">
<tbody>
<tr>
<td style="border: none; padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="line-height: 11.25pt; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; mso-border-alt: none windowtext 0in; padding: 0in;"><a href="http://3.bp.blogspot.com/-YTZUQxwV-kg/TsKsQIEtphI/AAAAAAAAAug/ivt9XUZHutU/s1600/Demo.png"><span style="color: #d1580d; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape
id="Picture_x0020_16" o:spid="_x0000_i1025" type="#_x0000_t75" alt="http://3.bp.blogspot.com/-YTZUQxwV-kg/TsKsQIEtphI/AAAAAAAAAug/ivt9XUZHutU/s1600/Demo.png"
href="http://3.bp.blogspot.com/-YTZUQxwV-kg/TsKsQIEtphI/AAAAAAAAAug/ivt9XUZHutU/s1600/Demo.png"
style='width:279pt;height:313.5pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image031.png"
o:title="Demo"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="http://3.bp.blogspot.com/-YTZUQxwV-kg/TsKsQIEtphI/AAAAAAAAAug/ivt9XUZHutU/s1600/Demo.png" border="0" height="418" src="file:///C:\Users\HCL\AppData\Local\Temp\msohtmlclip1\01\clip_image032.jpg" v:shapes="Picture_x0020_16" width="372" /><!--[endif]--></span></a></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center; vertical-align: baseline;">
<span style="border: none windowtext 1.0pt; color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-border-alt: none windowtext 0in; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin; padding: 0in;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--></span><span style="color: #222222; font-family: "Cambria","serif"; font-size: 10.0pt; mso-ascii-theme-font: major-latin; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-hansi-theme-font: major-latin;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com8tag:blogger.com,1999:blog-2650295613816833857.post-28322221185924363712013-08-31T02:08:00.000-07:002013-08-31T02:08:06.340-07:00Bind,Save,Edit,Update,Cancel,Delete,Paging example in GridView in asp.net C# <div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="post-title entry-title" itemprop="name">
Bind,Save,Edit,Update,Cancel,Delete,Paging example in GridView in asp.net C# </h1>
<h1 class="post-title entry-title" itemprop="name">
</h1>
<h1 class="post-title entry-title" itemprop="name">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><b><span style="color: #990000;">Introduction</span></b>: </span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In this article I am
going to explain How to perform Bind, Insert/Save, Edit, Update, Cancel, Delete,
Paging in GridView in asp.net using C# language.</span><br />
</h1>
<ul><i><span style="color: #990000;">Basically you will learn the following through this example: </span></i></ul>
<ul>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">How to Save/Insert and update data in Sql
Server Database from asp.net web application?</span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">How to Bind Data from Sql Server
to GridView Data Control?</span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">How to perform Edit, Update and
Delete operation in GridView?</span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">How to Fill Day, Month and Year
in DropDownList and set current date as selected?</span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">How to find controls like TextBox
and DropDownList placed inside GridView and get their values?</span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">How to implement paging in GridView?<a href="https://www.blogger.com/null" name="more"></a></span></li>
</ul>
<div>
</div>
<div>
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In previous articles i explained <u><a href="http://www.webcodeexpert.com/2013/07/how-to-bindinserteditupdatedelete-in.html" target="_blank">How to Bind,Insert,Edit,Update,Delete in GridView in asp.net VB.Net</a></u> and <u><a href="http://www.webcodeexpert.com/2013/08/wcf-service-to-bindinserteditupdatedele.html" target="_blank">WCF Service to bind,insert,edit,update,delete from sql server database in asp.net C#</a></u> and</span> <u><a href="http://www.webcodeexpert.com/2013/08/how-to-binduploaddownloaddelete-image.html" target="_blank">Bind,upload,download,delete image files from the GridView in asp.net using Sql Server as a back end database</a></u><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"> and <a href="http://www.webcodeexpert.com/2013/04/how-to-upload-download-and-delete-files.html" target="_blank"><u>How to upload, download and delete files from GridView in Asp.net?</u></a> and <a href="http://www.webcodeexpert.com/2013/02/how-to-bind-gridview-using_9775.html" target="_blank"><u>How to bind gridview using SqlDataAdapter,DataSet and Stored procedure in Asp.net </u></a> and <a href="http://www.webcodeexpert.com/2013/06/bind-and-export-gridview-data-to-pdf.html" target="_blank"><u>Bind and Export GridView data to PDF file in asp.net(C#, VB.Net)</u></a></span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"> </span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">and <a href="http://www.webcodeexpert.com/2013/02/how-to-bind-empty-gridview-with-header.html" target="_blank"><u>How to bind empty GridView with header and custom message when no data present in Datatable </u></a></span>and some other <a href="http://www.webcodeexpert.com/search/label/GridView%20Examples" target="_blank">GridView Examples </a>.</div>
<div>
</div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1wQHy0_GJ2DYyrqv8ROgXtBlLHnI9r3CO9ANloHvX_9onLlanb36cByStvtMblIO45CXDtkIIkinXrpIzc5N8jwU7vPfDTW22AX0W6pykd87u11nxetRg5o0ZJiVN6MZWmPBnJoJn3vk/s1600/Bind,save,+edit,+update,+delete,+paging+example+in+gridview.png" style="margin-left: auto; margin-right: auto;"><img alt="Bind,save, edit, update, delete, paging example in gridview" border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1wQHy0_GJ2DYyrqv8ROgXtBlLHnI9r3CO9ANloHvX_9onLlanb36cByStvtMblIO45CXDtkIIkinXrpIzc5N8jwU7vPfDTW22AX0W6pykd87u11nxetRg5o0ZJiVN6MZWmPBnJoJn3vk/s1600/Bind,save,+edit,+update,+delete,+paging+example+in+gridview.png" title="Bind,save, edit, update, delete, paging example in gridview" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="color: red;">Click on image to enlarge</span></td></tr>
</tbody></table>
<div class="MsoNormal">
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">First of all create the Database in Sql Server and Name it "Emp_DB" or whatever you want. Create a Table having columns </span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">as shown in figure</span> and name it "Emp_Tb" .</span></li>
</ul>
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal">
<span style="color: red; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Note</span><span style="color: black; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">: Emp_Id_Pk column is set to Primary
key and Identity specification is set to yes with Identity increment and
Identity seed equal to 1.</span></div>
<div class="MsoNormal">
<ul style="text-align: left;">
<li>In the Web.config file create the connection string as:</li>
</ul>
</div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><</span><span style="color: #a31515; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">connectionStrings</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">></span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-tab-count: 2;"> </span><</span><span style="color: #a31515; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">add</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> </span><span style="color: red; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">name</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">=</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">"<span style="color: blue;">conStr</span>"<span style="color: blue;"> </span><span style="color: red;">connectionString</span><span style="color: blue;">=</span>"<span style="color: blue;">Data Source=LocalServer;Initial Catalog=Emp_DB;Integrated
Security=True</span>"<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-tab-count: 1;"> </span></</span><span style="color: #a31515; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">connectionStrings</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">></span></div>
<br />
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"></span></div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Create
a folder in the root directory and name it "Images". Search edit and
delete .png icon image from the google search and add in the "Images"
folder.</span></li>
</ul>
<div class="MsoNormal">
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"> </span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Now In the Design page(.aspx) design <span style="mso-spacerun: yes;"> </span>the <span style="mso-spacerun: yes;"> </span>web
page as:</span></li>
</ul>
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="color: red;">Note</span>: I have also implemented the
asp.net validations on the Employee Name, Address and the Salary fields.</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><</span><span style="color: maroon; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">fieldset</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="color: red;">style</span><span style="color: blue;">="</span><span style="color: red;">width</span><span style="color: blue;">:545px;"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">legend</span> <span style="color: red;">style</span><span style="color: blue;">="</span><span style="color: red;">font-size</span><span style="color: blue;">:20px; </span><span style="color: red;">color</span><span style="color: blue;">:Green;"></span>Save,
Edit, Update, Delete, Paging example in </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>Gridview<span style="color: blue;"></</span><span style="color: maroon;">legend</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">table</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>Employee Name<span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtEmployeeName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span> <span style="color: red;">ID</span><span style="color: blue;">="rfvEmpName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">ErrorMessage</span><span style="color: blue;">="Please enter employee
name"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtEmployeeName"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="Red"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="mso-spacerun: yes;">>
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>Address<span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtAddress"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">TextMode</span><span style="color: blue;">="MultiLine"</span> <span style="color: red;">Height</span><span style="color: blue;">="59px"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">Width</span><span style="color: blue;">="267px"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span> <span style="color: red;">ID</span><span style="color: blue;">="rfvAddress"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">ErrorMessage</span><span style="color: blue;">="Please enter
Address"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtAddress"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="Red"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="mso-spacerun: yes;">>
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>DOJ<span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span> <span style="color: red;">ID</span><span style="color: blue;">="ddlYear"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span><span style="mso-spacerun: yes;">
</span><span style="color: red;">ToolTip</span><span style="color: blue;">="Select
Year"</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">onselectedindexchanged</span><span style="color: blue;">="ddlYear_SelectedIndexChanged"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span> <span style="color: red;">ID</span><span style="color: blue;">="ddlMonth"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Select Month"</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">onselectedindexchanged</span><span style="color: blue;">="ddlMonth_SelectedIndexChanged"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span> <span style="color: red;">ID</span><span style="color: blue;">="ddlDay"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Select Day"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>Salary<span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span> <span style="color: red;">ID</span><span style="color: blue;">="rfvSal"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">ErrorMessage</span><span style="color: blue;">="Please enter
salary"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtSalary"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="Red"</span>
<span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">&nbsp;</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">Button</span> <span style="color: red;">ID</span><span style="color: blue;">="btnSave"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Save"</span> <span style="color: red;">onclick</span><span style="color: blue;">="btnSave_Click"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">Button</span> <span style="color: red;">ID</span><span style="color: blue;">="btnReset"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Reset"</span> <span style="color: red;">CausesValidation</span><span style="color: blue;">="false"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: red;">onclick</span><span style="color: blue;">="btnReset_Click"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">table</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">GridView</span> <span style="color: red;">ID</span><span style="color: blue;">="grdEmp"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">DataKeyNames</span><span style="color: blue;">="Emp_Id_Pk"</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">CssClass</span><span style="color: blue;">="rowHover"</span> <span style="color: red;">RowStyle-CssClass</span><span style="color: blue;">="rowHover"</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">AutoGenerateColumns</span><span style="color: blue;">="False"</span> <span style="color: red;">AllowPaging</span><span style="color: blue;">="True"</span> <span style="color: red;">onpageindexchanging</span><span style="color: blue;">="grdEmp_PageIndexChanging"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">PageSize</span><span style="color: blue;">="4"</span>
<span style="color: red;">onrowcancelingedit</span><span style="color: blue;">="grdEmp_RowCancelingEdit"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">onrowdeleting</span><span style="color: blue;">="grdEmp_RowDeleting"</span>
<span style="color: red;">onrowediting</span><span style="color: blue;">="grdEmp_RowEditing"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">onrowupdating</span><span style="color: blue;">="grdEmp_RowUpdating"</span>
<span style="color: red;">onrowdatabound</span><span style="color: blue;">="grdEmp_RowDataBound"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">CellPadding</span><span style="color: blue;">="4"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="#333333"</span>
<span style="color: red;">GridLines</span><span style="mso-spacerun: yes;">="None">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">AlternatingRowStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="White"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="#284775"</span>
<span style="mso-spacerun: yes;">/>
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">Columns</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span> <span style="color: red;">HeaderText</span><span style="color: blue;">="Emp
Name"</span> <span style="color: red;">HeaderStyle-HorizontalAlign</span><span style="color: blue;">="Center"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><%<span style="color: blue;">#</span>Eval(<span style="color: #a31515;">"EmpName"</span>)%></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtEmpName"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">Text</span><span style="color: blue;">='</span><%<span style="color: blue;">#</span>Eval("EmpName") %><span style="color: blue;">'></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span>
<span style="color: red;">ID</span><span style="color: blue;">="rfvEmpName"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ErrorMessage</span><span style="color: blue;">="*"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="red"</span>
<span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtEmpName"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
<span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span><span style="mso-spacerun: yes;">> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span> <span style="color: red;">HeaderText</span><span style="color: blue;">="Address"</span>
<span style="color: red;">HeaderStyle-HorizontalAlign</span><span style="color: blue;">="Center"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><%<span style="color: blue;">#</span>Eval(<span style="color: #a31515;">"Address"</span>)%></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtEditAddress"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">Text</span><span style="color: blue;">='</span><%<span style="color: blue;">#</span>Eval("Address") %><span style="color: blue;">'</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">TextMode</span><span style="color: blue;">="MultiLine"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span>
<span style="color: red;">ID</span><span style="color: blue;">="rfvAddress"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ErrorMessage</span><span style="color: blue;">="*"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="red"</span>
<span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtEditAddress"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
<span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span> <span style="color: red;">HeaderText</span><span style="color: blue;">="DOJ"</span>
<span style="color: red;">HeaderStyle-HorizontalAlign</span><span style="color: blue;">="Center"</span> <span style="color: red;">ItemStyle-Width</span><span style="color: blue;">="180px"></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><%<span style="color: blue;">#</span>Eval(<span style="color: #a31515;">"DOJ"</span>,
<span style="color: #a31515;">"{0:dd/MM/yyyy}"</span>)%><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span> <span style="color: red;">ID</span><span style="color: blue;">="ddlEditDay"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ToolTip</span><span style="color: blue;">="Select
Day"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span> <span style="color: red;">ID</span><span style="color: blue;">="ddlEditMonth"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ToolTip</span><span style="color: blue;">="Select
Month"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span> <span style="color: red;">ID</span><span style="color: blue;">="ddlEditYear"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ToolTip</span><span style="color: blue;">="Select
Year"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">DropDownList</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: red;">Width</span><span style="color: blue;">="180px"</span>
<span style="mso-spacerun: yes;">/> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span> <span style="color: red;">HeaderText</span><span style="color: blue;">="Salary"</span>
<span style="color: red;">HeaderStyle-HorizontalAlign</span><span style="color: blue;">="Center"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><%<span style="color: blue;">#</span>Eval(<span style="color: #a31515;">"Salary"</span>)%></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtSal"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">Text</span><span style="color: blue;">='</span><%<span style="color: blue;">#</span>Eval("Salary") %><span style="color: blue;">'></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span>
<span style="color: red;">ID</span><span style="color: blue;">="rfvSal"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ErrorMessage</span><span style="color: blue;">="*"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="red"</span>
<span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtSal"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
<span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span><span style="mso-spacerun: yes;">> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span> <span style="color: red;">HeaderText</span><span style="color: blue;">="Edit"</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">HeaderStyle-HorizontalAlign</span><span style="color: blue;">="Center"</span> <span style="color: red;">ItemStyle-HorizontalAlign</span><span style="color: blue;">="Center"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">ImageButton</span> <span style="color: red;">ID</span><span style="color: blue;">="imgEdit"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">CommandName</span><span style="color: blue;">="Edit"</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">ImageUrl</span><span style="color: blue;">="~/Images/Edit.png"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Edit"</span>
<span style="color: red;">CausesValidation</span><span style="color: blue;">="false"/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">LinkButton</span> <span style="color: red;">ID</span><span style="color: blue;">="lkUpdate"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">Text</span><span style="color: blue;">="Update"</span>
<span style="color: red;">CommandName</span><span style="color: blue;">="Update"</span>
<span style="color: red;">ToolTip</span><span style="color: blue;">="Update"</span>
<span style="color: red;">CausesValidation</span><span style="color: blue;">="false"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">LinkButton</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">LinkButton</span> <span style="color: red;">ID</span><span style="color: blue;">="lkCancel"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">Text</span><span style="color: blue;">="Cancel"</span> <span style="color: red;">CommandName</span><span style="color: blue;">="Cancel"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Cancel"</span> <span style="color: red;">CausesValidation</span><span style="color: blue;">="false"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">LinkButton</span><span style="color: blue;">></span><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">EditItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span><span style="color: blue;">></span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span> <span style="color: red;">HeaderText</span><span style="color: blue;">="Delete"</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">HeaderStyle-HorizontalAlign</span><span style="color: blue;">="Center"</span> <span style="color: red;">ItemStyle-HorizontalAlign</span><span style="color: blue;">="Center"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">ImageButton</span> <span style="color: red;">ID</span><span style="color: blue;">="imgDelete"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">CommandName</span><span style="color: blue;">="Delete"</span><span style="mso-spacerun: yes;"> </span><span style="color: red;">ImageUrl</span><span style="color: blue;">="~/Images/Delete.png"</span> <span style="color: red;">OnClientClick</span><span style="color: blue;">="return
confirm('Are you sure you want to delete selected record ?')"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Delete"</span>
<span style="color: red;">CausesValidation</span><span style="color: blue;">="false"/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"></</span><span style="color: maroon;">ItemTemplate</span><span style="color: blue;">></span><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">ItemStyle</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TemplateField</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">Columns</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">EditRowStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#999999"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">FooterStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#5D7B9D"</span>
<span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">HeaderStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#5D7B9D"</span>
<span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">PagerStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#284775"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span>
<span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="mso-spacerun: yes;"> </span></span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><</span><span style="color: maroon; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">RowStyle</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="color: red;">CssClass</span><span style="color: blue;">="rowHover"</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#F7F6F3"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="#333333"></</span><span style="color: maroon;">RowStyle</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">SelectedRowStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#E2DED6"</span>
<span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span>
<span style="color: red;">ForeColor</span><span style="color: blue;">="#333333"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">SortedAscendingCellStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#E9E7E2"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">SortedAscendingHeaderStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#506C8C"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">SortedDescendingCellStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#FFFDF8"</span>
<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;"><</span><span style="color: maroon;">SortedDescendingHeaderStyle</span>
<span style="color: red;">BackColor</span><span style="color: blue;">="#6F8DAE"</span>
<span style="color: blue;">/></span><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">GridView</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">fieldset</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="color: #990000;"><span style="font-family: Times,"Times New Roman",serif;"><span style="font-size: medium;">C#.Net Code</span></span></span> to Bind, Save, Edit, Update,
Cancel, Delete, Paging example in GridView</span></div>
<div class="MsoNormal">
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In the Code behind file
(.aspx.cs) write the code as:</span></li>
</ul>
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> "namespaces"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Collections.Generic;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Linq;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Web;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Web.UI;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Web.UI.WebControls;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Data;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Data.SqlClient;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Configuration;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.IO;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">public</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="color: blue;">partial</span> <span style="color: blue;">class</span> <span style="color: #2b91af;">_Default</span> :
System.Web.UI.<span style="color: #2b91af;">Page</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Creating Connection object and getting connection string</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">SqlConnection</span> con = <span style="color: blue;">new</span>
<span style="color: #2b91af;">SqlConnection</span>(<span style="color: #2b91af;">ConfigurationManager</span>.ConnectionStrings[<span style="color: #a31515;">"conStr"</span>].ConnectionString);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"page Load"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
Page_Load(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Check and Open Database connection</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">if</span> (con.State == <span style="color: #2b91af;">ConnectionState</span>.Closed)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Open();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>} </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">if</span> (!Page.IsPostBack)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Bind gridview existing records</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//DOJ Field</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Fill Years with current year selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">for</span> (<span style="color: blue;">int</span>
i = 2013; i >= 1980; i--)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>ddlYear.Items.Add(i.ToString()); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlYear.Items.FindByValue(System.<span style="color: #2b91af;">DateTime</span>.Now.Year.ToString()).Selected
= <span style="color: blue;">true</span>;<span style="mso-spacerun: yes;"> </span><span style="color: green;">//set current year as selected</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Fill Months with current month selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">for</span> (<span style="color: blue;">int</span>
i = 1; i <= 12; i++)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlMonth.Items.Add(i.ToString());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlMonth.Items.FindByValue(System.<span style="color: #2b91af;">DateTime</span>.Now.Month.ToString()).Selected
= <span style="color: blue;">true</span>; <span style="color: green;">// Set
current month as selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Fill days based on selected month</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>FillDays();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Save employee record"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
btnSave_Click(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> doj = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Joining selected Day, month and year to create Date of
Joining</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>doj
= <span style="color: #2b91af;">Convert</span>.ToString(ddlDay.SelectedValue + <span style="color: #a31515;">"/"</span> + ddlMonth.SelectedValue + <span style="color: #a31515;">"/"</span> + ddlYear.SelectedValue);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">SqlCommand</span> cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"Insert into Emp_Tb(EmpName,Address,DOJ,Salary)
values (@EmpName,@Address,@Doj,@Salary)"</span>, con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.CommandType = <span style="color: #2b91af;">CommandType</span>.Text;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@EmpName"</span>,
<span style="color: #2b91af;">SqlDbType</span>.VarChar, 100).Value =
txtEmployeeName.Text.Trim();<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="mso-spacerun: yes;"> </span>cmd.Parameters.Add(<span style="color: #a31515;">"@Address"</span>, <span style="color: #2b91af;">SqlDbType</span>.VarChar,
500).Value =<span style="mso-spacerun: yes;">
</span>txtAddress.Text.Trim();<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@Doj"</span>, <span style="color: #2b91af;">SqlDbType</span>.VarChar, 50).Value = doj;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@Salary"</span>,
<span style="color: #2b91af;">SqlDbType</span>.Int).Value =
txtSalary.Text.Trim();<span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.ExecuteNonQuery();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Clear all controls after saving the record</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>Clear_Controls();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Bind gridview after saving the record</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">// Show error occurred in message box using
JavaScript</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterClientScriptBlock(Page,
Page.GetType(), <span style="color: #2b91af;">Guid</span>.NewGuid().ToString(), <span style="color: #a31515;">"alert('"</span> + ex.Message.ToString() + <span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>doj = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//close the database connection</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Bind gridview with data"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">public</span> <span style="color: blue;">void</span>
bindGridView()</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">SqlCommand</span>
cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"select * from Emp_Tb"</span>, con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">SqlDataAdapter</span> adp = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlDataAdapter</span>(cmd);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DataSet</span> ds = <span style="color: blue;">new</span>
<span style="color: #2b91af;">DataSet</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>adp.Fill(ds);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> (ds.Tables[0].Rows.Count > 0)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>grdEmp.DataSource = ds;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>grdEmp.DataBind();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>} </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">else</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Bind
Empty grdview with Columns names in Header and "No employee record
found" message if no records are found in the database</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>BindEmptyGridWithHeader(grdEmp, ds);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>} </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterClientScriptBlock(Page,
Page.GetType(), <span style="color: #2b91af;">Guid</span>.NewGuid().ToString(), <span style="color: #a31515;">"alert('"</span> + ex.Message.ToString() + <span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"paging in gridview"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
grdEmp_PageIndexChanging(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewPageEventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>grdEmp.PageIndex = e.NewPageIndex;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Call bind gridview function</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Cancel code in gridview"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
grdEmp_RowCancelingEdit(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewCancelEditEventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>grdEmp.EditIndex = -1;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Deletion in gridview"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
grdEmp_RowDeleting(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewDeleteEventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">int</span> empId = <span style="color: #2b91af;">Convert</span>.ToInt32(grdEmp.DataKeys[e.RowIndex].Value);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">SqlCommand</span> cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"delete from Emp_Tb where Emp_Id_Pk= @EmpId"</span>,
con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@EmpId"</span>,
<span style="color: #2b91af;">SqlDbType</span>.Int).Value = empId;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.CommandType = <span style="color: #2b91af;">CommandType</span>.Text;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.ExecuteNonQuery();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>grdEmp.EditIndex = -1;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterClientScriptBlock(Page,
Page.GetType(), <span style="color: #2b91af;">Guid</span>.NewGuid().ToString(), <span style="color: #a31515;">"alert('"</span>+ ex.Message.ToString() +<span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"updation in gridview"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
grdEmp_RowUpdating(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewUpdateEventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> empName = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> address = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> dojUpdated = <span style="color: blue;">string</span>.Empty;<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">// Finding dropdownlist inside gridview and
getting updated value</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DropDownList</span> ddlEditDojYear = (<span style="color: #2b91af;">DropDownList</span>)(grdEmp.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"ddlEditYear"</span>));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DropDownList</span> ddlEditDojMonth = (<span style="color: #2b91af;">DropDownList</span>)(grdEmp.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"ddlEditMonth"</span>));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DropDownList</span> ddlEditDojDay = (<span style="color: #2b91af;">DropDownList</span>)(grdEmp.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"ddlEditDay"</span>));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="color: green;">// creating
Updated DOJ field</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>dojUpdated = <span style="color: #2b91af;">Convert</span>.ToString(ddlEditDojDay.SelectedValue
+ <span style="color: #a31515;">"/"</span> +
ddlEditDojMonth.SelectedValue + <span style="color: #a31515;">"/"</span>
+ ddlEditDojYear.SelectedValue);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Read Emp_id_Pk from DataKeyNames</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">int</span> empId = <span style="color: #2b91af;">Convert</span>.ToInt32(grdEmp.DataKeys[e.RowIndex].Value);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Finding TextBox inside gridview and getting
updated value</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>empName = ((<span style="color: #2b91af;">TextBox</span>)(grdEmp.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtEmpName"</span>))).Text.Trim();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>address = ((<span style="color: #2b91af;">TextBox</span>)(grdEmp.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtEditAddress"</span>))).Text.Trim();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">int</span> sal = <span style="color: #2b91af;">Convert</span>.ToInt32(((<span style="color: #2b91af;">TextBox</span>)(grdEmp.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtSal"</span>))).Text.Trim());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">SqlCommand</span> cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"update Emp_Tb set EmpName=@EmpName,Address=@Address,DOJ=@Doj,Salary=@Salary
where Emp_Id_Pk=@EmpId"</span>, con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.CommandType = <span style="color: #2b91af;">CommandType</span>.Text;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@EmpId"</span>,
<span style="color: #2b91af;">SqlDbType</span>.Int).Value = empId;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@EmpName"</span>,
<span style="color: #2b91af;">SqlDbType</span>.VarChar, 50).Value = empName;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@Address"</span>,
<span style="color: #2b91af;">SqlDbType</span>.VarChar, 50).Value = address;<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@Doj"</span>, <span style="color: #2b91af;">SqlDbType</span>.VarChar, 50).Value = dojUpdated;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.Add(<span style="color: #a31515;">"@Salary"</span>,
<span style="color: #2b91af;">SqlDbType</span>.BigInt).Value = sal;<span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.ExecuteNonQuery();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>grdEmp.EditIndex = -1;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterClientScriptBlock(Page,
Page.GetType(), <span style="color: #2b91af;">Guid</span>.NewGuid().ToString(), <span style="color: #a31515;">"alert('"</span> + ex.Message.ToString() + <span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>empName = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>address = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>dojUpdated = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Editing in gridview"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
grdEmp_RowEditing(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewEditEventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>grdEmp.EditIndex = e.NewEditIndex;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>bindGridView();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Bind Empty Gridview with header"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">public</span> <span style="color: blue;">void</span>
BindEmptyGridWithHeader(<span style="color: #2b91af;">GridView</span> gridView, <span style="color: #2b91af;">DataSet</span> ds)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> (ds.Tables[0].Rows.Count == 0)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Add a blank row to the dataset</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ds.Tables[0].Rows.Add(ds.Tables[0].NewRow());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Bind the DataSet to the GridView</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>gridView.DataSource = ds;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>gridView.DataBind();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Get the number of columns to know what the
Column Span should be</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">int</span> columnCount =
gridView.Rows[0].Cells.Count;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Call the clear method to clear out any
controls that you use in the columns. </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>gridView.Rows[0].Cells.Clear();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="mso-spacerun: yes;"> </span>gridView.Rows[0].Cells.Add(<span style="color: blue;">new</span> <span style="color: #2b91af;">TableCell</span>());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>gridView.Rows[0].Cells[0].ColumnSpan = columnCount;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>gridView.Rows[0].Cells[0].Text = <span style="color: #a31515;">"<font
color=Red><b><center>No employee record Found
!</center></b></font>"</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Do your exception handling here</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Grid RowDataBound Event"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
grdEmp_RowDataBound(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewRowEventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> day = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> month = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> year = <span style="color: blue;">string</span>.Empty;<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> (e.Row.RowType == <span style="color: #2b91af;">DataControlRowType</span>.DataRow &&
grdEmp.EditIndex == e.Row.RowIndex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Read Emp_Id_Pk
from DataKeyNames</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">int</span> empId = <span style="color: #2b91af;">Convert</span>.ToInt32(grdEmp.DataKeys[e.Row.RowIndex].Value); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">SqlDataAdapter</span> adp1 = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlDataAdapter</span>(<span style="color: #a31515;">"Select * from Emp_Tb where Emp_Id_Pk=@EmpId"</span>,
con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>adp1.SelectCommand.CommandType = <span style="color: #2b91af;">CommandType</span>.Text;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>adp1.SelectCommand.Parameters.Add(<span style="color: #a31515;">"@EmpId"</span>,
<span style="color: #2b91af;">SqlDbType</span>.Int).Value = empId; </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DataTable</span> dtEdit = <span style="color: blue;">new</span> <span style="color: #2b91af;">DataTable</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>adp1.Fill(dtEdit); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">string</span> getDoj = dtEdit.Rows[0][<span style="color: #a31515;">"DOJ"</span>].ToString();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Splitting the DOJ field into day, month and
year</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">string</span>[]<span style="mso-spacerun: yes;">
</span>strDoj = getDoj.Split(<span style="color: #a31515;">'/'</span>); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>day = strDoj[0];</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>month = strDoj[1];</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>year = strDoj[2];</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DropDownList</span> ddlEditDojYear = (<span style="color: #2b91af;">DropDownList</span>)(e.Row.FindControl(<span style="color: #a31515;">"ddlEditYear"</span>));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DropDownList</span> ddlEditDojMonth = (<span style="color: #2b91af;">DropDownList</span>)(e.Row.FindControl(<span style="color: #a31515;">"ddlEditMonth"</span>));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">DropDownList</span> ddlEditDojDay = (<span style="color: #2b91af;">DropDownList</span>)(e.Row.FindControl(<span style="color: #a31515;">"ddlEditDay"</span>));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Fill Years</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">for</span> (<span style="color: blue;">int</span>
i = 2013; i >= 1980; i--)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlEditDojYear.Items.Add(i.ToString()); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="mso-spacerun: yes;">
</span>ddlEditDojYear.SelectedValue = year;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Fill Months</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">for</span> (<span style="color: blue;">int</span>
i = 1; i <= 12; i++)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlEditDojMonth.Items.Add(i.ToString());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlEditDojMonth.SelectedValue = month;<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Fill days</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>FillDaysInsideGrid(ddlEditDojDay, ddlEditDojYear, ddlEditDojMonth, day);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterClientScriptBlock(Page,
Page.GetType(), <span style="color: #2b91af;">Guid</span>.NewGuid().ToString(), <span style="color: #a31515;">"alert('"</span> + ex.Message.ToString() + <span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>day = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>month = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>year = <span style="color: blue;">string</span>.Empty;<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"DOJ"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
ddlYear_SelectedIndexChanged(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>FillDays();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
ddlMonth_SelectedIndexChanged(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>FillDays();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">public</span> <span style="color: blue;">void</span>
FillDays()</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">if</span> (!Page.IsPostBack)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlDay.Items.Clear();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//getting number of days in selected month & year</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">int</span> noofdays = <span style="color: #2b91af;">DateTime</span>.DaysInMonth(<span style="color: #2b91af;">Convert</span>.ToInt32(ddlYear.SelectedValue), <span style="color: #2b91af;">Convert</span>.ToInt32(ddlMonth.SelectedValue));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Fill days</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 1; i
<= noofdays; i++)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>ddlDay.Items.Add(i.ToString());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>} </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">if</span> (!Page.IsPostBack)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlDay.Items.FindByValue(System.<span style="color: #2b91af;">DateTime</span>.Now.Day.ToString()).Selected
= <span style="color: blue;">true</span>;<span style="color: green;">// Set current
date as selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Fill Days Inside GridView"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">public</span> <span style="color: blue;">void</span>
FillDaysInsideGrid(<span style="color: #2b91af;">DropDownList</span>
ddlEditDojDay, <span style="color: #2b91af;">DropDownList</span> ddlEditDojYear, <span style="color: #2b91af;">DropDownList</span> ddlEditDojMonth, <span style="color: blue;">string</span> day)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlEditDojDay.Items.Clear();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//getting number of days in selected month & year</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">int</span> noofdays = <span style="color: #2b91af;">DateTime</span>.DaysInMonth(<span style="color: #2b91af;">Convert</span>.ToInt32(ddlEditDojYear.SelectedValue), <span style="color: #2b91af;">Convert</span>.ToInt32(ddlEditDojMonth.SelectedValue));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Fill days</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 1; i
<= noofdays; i++)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlEditDojDay.Items.Add(i.ToString());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>ddlEditDojDay.SelectedValue = day;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#region</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">
"Clear & reset all controls"</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
btnReset_Click(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>Clear_Controls();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>} </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">private</span> <span style="color: blue;">void</span>
Clear_Controls()</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtEmployeeName.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtSalary.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtEmployeeName.Focus();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtAddress.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtEmployeeName.Focus();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Reset DOJ Field</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Fill Years with current year selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlYear.Items.Clear();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 2013; i
>= 1980; i--)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlYear.Items.Add(i.ToString()); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlYear.Items.FindByValue(System.<span style="color: #2b91af;">DateTime</span>.Now.Year.ToString()).Selected
= <span style="color: blue;">true</span>;<span style="mso-spacerun: yes;"> </span><span style="color: green;">//set current year as selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Fill Months with current month selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlMonth.Items.Clear();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 1; i
<= 12; i++)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlMonth.Items.Add(i.ToString());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlMonth.Items.FindByValue(System.<span style="color: #2b91af;">DateTime</span>.Now.Month.ToString()).Selected
= <span style="color: blue;">true</span>; <span style="color: green;">// Set
current month as selected</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Fill days according to current month<span style="mso-spacerun: yes;"> </span></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlDay.Items.Clear();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Getting number of days in selected month & year</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">int</span> noofdays = <span style="color: #2b91af;">DateTime</span>.DaysInMonth(<span style="color: #2b91af;">Convert</span>.ToInt32(ddlYear.SelectedValue), <span style="color: #2b91af;">Convert</span>.ToInt32(ddlMonth.SelectedValue));</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: green;">//Fill days</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 1; i
<= noofdays; i++)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlDay.Items.Add(i.ToString());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ddlDay.Items.FindByValue(System.<span style="color: #2b91af;">DateTime</span>.Now.Day.ToString()).Selected
= <span style="color: blue;">true</span>;<span style="color: green;">// Set current
date as selected<span style="mso-spacerun: yes;"> </span></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>#endregion</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">}</span><h1 class="post-title entry-title" itemprop="name">
</h1>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-15233223000648251442013-08-31T02:07:00.000-07:002013-08-31T02:09:22.744-07:00Create registration form and send confirmation email to new registered users in asp.net | Activate or approve user account by activation link in email address. <div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="post-title entry-title" itemprop="name">
Create registration
form and send confirmation email to new registered users in asp.net |
Activate or approve user account by activation link in email address. </h1>
<h1 class="post-title entry-title" itemprop="name">
</h1>
<h1 class="post-title entry-title" itemprop="name">
<span style="color: #cc0000;"><span style="font-family: "Trebuchet MS",sans-serif;"><b>Introduction</b></span></span>:
In this article I am
going to explain with example How to create registration form and
approve newly registered user by sending them account activation link on
their email address in asp.net
with both C#.Net and VB.Net languages.<br />
</h1>
<div class="MsoNormal">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOCOpGnePCMUOaZcZnjxUjCMv-nAOfqR6wl9-fZ1YRFA1gal7TOgNH7l_jH4gt0aUQ11CdYznyO0sTDQZrBZ2XjzIAMn7Ak297aHf3ci5ZLtox3FkEG_2jmgpSw-qE7fuidh2yOz2hMKk/s1600/Activate+account+using+activate+link+in+email+address+using+asp.net.png" style="margin-left: 1em; margin-right: 1em;"><img alt="Activate user account using activate link in email address using asp.net" border="0" height="162" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOCOpGnePCMUOaZcZnjxUjCMv-nAOfqR6wl9-fZ1YRFA1gal7TOgNH7l_jH4gt0aUQ11CdYznyO0sTDQZrBZ2XjzIAMn7Ak297aHf3ci5ZLtox3FkEG_2jmgpSw-qE7fuidh2yOz2hMKk/s320/Activate+account+using+activate+link+in+email+address+using+asp.net.png" title="Activate user account using activate link in email address using asp.net" width="320" /></a></div>
<br />
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><b><span style="font-family: "Trebuchet MS",sans-serif;"><span style="color: #cc0000;">Description</span></span></b>: The concept is
simple as mentioned below.</span></div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">First user will fill the form
having Name, Email Id, Address and Contact Number field. This information will
be stored in the Sql server database table where a field “Is_Approved” is set to 0 i.e.
false by default.<a href="https://www.blogger.com/null" name="more"></a></span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Also email id, and the user id
based on email id is set in the query string parameters and sent to the email
address of the newly registered user as an activation link.</span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">When user check his email and click
on the activation link then he will be redirected to the "ActivateAccount.aspx"
page where User id and email Id from the query string will be verified and the “Is_Approved”
field in the<span style="mso-spacerun: yes;"> </span>sql server table is set to
1 i.e. True. </span></li>
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Now he is an approved user and authorized
to log in.</span></li>
</ul>
<h1 class="post-title entry-title" itemprop="name">
</h1>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-family: "Trebuchet MS",sans-serif;"><span style="color: #cc0000;"><b>Implementation</b></span></span>: let’s create an
asp.net web application to understand the concept.</span></div>
<div class="MsoNormal">
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: right; margin-left: 1em; text-align: right;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRflqfosDvbyNRm9y71L7yDtp213-7dEn4EZox_Ym2GBCDM4y-VRTrNhlpem-wgaTv7vhjZIvVXyGLI6SqTW1lh67AKl3M5jVVVmBslMAk92k1RhbKJpO8Y4nCYunfCiVvXkFkhqDkqGs/s1600/Activate+account+using+activate+link+in+email+address+using+asp.net.png" style="clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRflqfosDvbyNRm9y71L7yDtp213-7dEn4EZox_Ym2GBCDM4y-VRTrNhlpem-wgaTv7vhjZIvVXyGLI6SqTW1lh67AKl3M5jVVVmBslMAk92k1RhbKJpO8Y4nCYunfCiVvXkFkhqDkqGs/s200/Activate+account+using+activate+link+in+email+address+using+asp.net.png" width="176" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span style="color: red;">Click on the image to enlarge</span></td></tr>
</tbody></table>
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">First of all create a database
e.g. “MyDataBase” in Sql server and create a table with the column and the data type as shown and name it “Tb_Registration”</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="color: red;"><b>Note</b></span>: I have set the data type of
the Is_Approved field to bit and set its default value to 0 i.e. false. It means
whenever a new record is inserted in the table the “Is_Approved” will be 0. So
the new users need to get their account approved by clicking on the activation
link in their email address. </span></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In the web.config file create the
connection string to connect your asp.net application to the Sql server
database as:</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><</span><span style="color: #a31515; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">connectionStrings</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">></span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><</span><span style="color: #a31515; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">add</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> </span><span style="color: red; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">name</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">=</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">"<span style="color: blue;">conStr</span>"<span style="color: blue;"> </span><span style="color: red;">connectionString</span><span style="color: blue;">=</span>"<span style="color: blue;">Data Source=lalit;Initial Catalog=MyDataBase;Integrated
Security=True</span>"<span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span></</span><span style="color: #a31515; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">connectionStrings</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="color: black;"><span style="color: red;"><b>Note</b></span>: Replace the Data Source and Initial Catalog(i.e. DataBase Name) as per your application. </span></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="color: #cc0000;"><span style="font-size: medium;"><span style="font-family: Georgia,"Times New Roman",serif;">Source Code:</span></span></span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Add a page and name it “Registration.aspx”
and design the page as:</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> </span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><</span><span style="color: maroon; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">div</span><span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">></span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">fieldset</span> <span style="color: red;">style</span><span style="color: blue;">="</span><span style="color: red;">width</span><span style="color: blue;">:350px;"></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">legend</span><span style="color: blue;">></span>Registeration page<span style="color: blue;"></</span><span style="color: maroon;">legend</span><span style="color: blue;">></span><span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">table</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span>Name *: <span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtName"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">><</span><span style="color: maroon;">br</span> <span style="color: blue;">/><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">ID</span><span style="color: blue;">="rfvName"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">ErrorMessage</span><span style="color: blue;">="Please
enter Name"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtName"</span> <span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="#FF3300"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span>Email Id: * <span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtEmailId"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">><</span><span style="color: maroon;">br</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span>
<span style="color: red;">ID</span><span style="color: blue;">="rfvEmailId"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtEmailId"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">ErrorMessage</span><span style="color: blue;">="Please
enter Email Id"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="Red"</span> <span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RequiredFieldValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RegularExpressionValidator</span>
<span style="color: red;">ID</span><span style="color: blue;">="rgeEmailId"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtEmailId"</span>
<span style="color: red;">Display</span><span style="color: blue;">="Dynamic"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">ErrorMessage</span><span style="color: blue;">="Please
enter valid email id format"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="Red"</span> </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">SetFocusOnError</span><span style="color: blue;">="True"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">ValidationExpression</span><span style="color: blue;">="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">RegularExpressionValidator</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span>Address : <span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtAddress"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span>Contact No.<span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="txtContactNo"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"></</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">TextBox</span><span style="color: blue;">></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">td</span><span style="color: blue;">></span><span style="color: red;">&nbsp;</span><span style="color: blue;"></</span><span style="color: maroon;">td</span><span style="color: blue;">><</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"><</span><span style="color: maroon;">asp</span><span style="color: blue;">:</span><span style="color: maroon;">Button</span> <span style="color: red;">ID</span><span style="color: blue;">="btnSubmit"</span>
<span style="color: red;">runat</span><span style="color: blue;">="server"</span>
<span style="color: red;">Text</span><span style="color: blue;">="Submit"</span>
</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: red;">onclick</span><span style="color: blue;">="btnSubmit_Click"</span>
<span style="color: blue;">/></</span><span style="color: maroon;">td</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">tr</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">table</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">fieldset</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;"></</span><span style="color: maroon;">div</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><b><span style="color: red;">Note</span></b>: I have also implemented the
validation on Name and the Email Id field to ensure they are not left blank
using <u><a href="http://www.webcodeexpert.com/2013/05/how-to-use-requiredfieldvalidator.html" target="_blank">RequiredFieldValidator </a></u>validation control and also used <u><a href="http://www.webcodeexpert.com/2013/05/how-to-use-regularexpressionvalidator.html" target="_blank">RegularExpressionValidator</a> </u>to check for the valid email address on the Email Id field.</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: medium;"><span style="color: #cc0000;"><span style="font-family: Georgia,"Times New Roman",serif;">C#.Net Code</span></span></span> for Registration.aspx</span></div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In the code behind file (Registration.aspx.cs)
write the code as:</span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Data;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Data.SqlClient;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Configuration;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Text;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Net;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Net.Mail;</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: #2b91af; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">SqlConnection</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> con = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlConnection</span>(<span style="color: #2b91af;">ConfigurationManager</span>.ConnectionStrings[<span style="color: #a31515;">"conStr"</span>].ConnectionString);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">protected</span> <span style="color: blue;">void</span>
btnSubmit_Click(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">MailMessage</span> msg;<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">SqlCommand</span> cmd = <span style="color: blue;">new</span>
<span style="color: #2b91af;">SqlCommand</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> ActivationUrl = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">string</span> emailId = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"insert into Tb_Registration
(Name,EmailId,Address,ContactNo) values (@Name,@EmailId,@Address,@ContactNo)
"</span>, con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"Name"</span>,
txtName.Text.Trim());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"EmailId"</span>,
txtEmailId.Text.Trim());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"Address"</span>,
txtAddress.Text.Trim());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"ContactNo"</span>,
txtContactNo.Text.Trim());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> (con.State == <span style="color: #2b91af;">ConnectionState</span>.Closed)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Open();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.ExecuteNonQuery();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: #4f6228; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin; mso-themecolor: accent3; mso-themeshade: 128;"><span style="mso-spacerun: yes;"> </span>//Sending activation link in
the email</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>msg = <span style="color: blue;">new</span> <span style="color: #2b91af;">MailMessage</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">SmtpClient</span> smtp = <span style="color: blue;">new</span> <span style="color: #2b91af;">SmtpClient</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>emailId = txtEmailId.Text.Trim();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//sender email address</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>msg.From = <span style="color: blue;">new</span> <span style="color: #2b91af;">MailAddress</span>(<span style="color: #a31515;">"YourGmailEmailId@gmail.com"</span>);<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//Receiver email address</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>msg.To.Add(emailId);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>msg.Subject = <span style="color: #a31515;">"Confirmation email for
account activation"</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: green;">//For testing replace the local host path with
your lost host path and while making online replace with your website domain
name</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ActivationUrl = Server.HtmlEncode(<span style="color: #a31515;">"http://localhost:8665/MySampleApplication/ActivateAccount.aspx?UserID="</span>
+ FetchUserId(emailId) + <span style="color: #a31515;">"&EmailId="</span>
+ emailId);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>msg.Body = <span style="color: #a31515;">"Hi "</span> +
txtName.Text.Trim() + <span style="color: #a31515;">"!\n"</span> +</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #a31515;">"Thanks for showing interest and
registring in <a href='http://www.webcodeexpert.com'> webcodeexpert.com<a>
"</span> +</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #a31515;">" Please <a href='"</span> +
ActivationUrl + <span style="color: #a31515;">"'>click here to
activate</a><span style="mso-spacerun: yes;"> </span>your account and
enjoy our services. \nThanks!"</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>msg.IsBodyHtml = <span style="color: blue;">true</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>smtp.Credentials = <span style="color: blue;">new</span> <span style="color: #2b91af;">NetworkCredential</span>(<span style="color: #a31515;">"YourGmailEmailId@gmail.com"</span>,
<span style="color: #a31515;">"YourGmailPassword"</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>smtp.Port = 587;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>smtp.Host = <span style="color: #a31515;">"smtp.gmail.com"</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>smtp.EnableSsl = <span style="color: blue;">true</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>smtp.Send(msg); </span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>clear_controls();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterStartupScript(<span style="color: blue;">this</span>, <span style="color: blue;">this</span>.GetType(),
<span style="color: #a31515;">"Message"</span>, <span style="color: #a31515;">"alert('Confirmation Link to activate your account has been sent
to your email address');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterStartupScript(<span style="color: blue;">this</span>, <span style="color: blue;">this</span>.GetType(),
<span style="color: #a31515;">"Message"</span>, <span style="color: #a31515;">"alert('Error occured : "</span> + ex.Message.ToString() + <span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">return</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ActivationUrl = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>emailId = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Dispose();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}<span style="mso-spacerun: yes;"> </span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">private</span> <span style="color: blue;">string</span>
FetchUserId(<span style="color: blue;">string</span> emailId)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">SqlCommand</span> cmd = <span style="color: blue;">new</span>
<span style="color: #2b91af;">SqlCommand</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"SELECT UserId FROM Tb_Registration WHERE
EmailId=@EmailId"</span>, con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"@EmailId"</span>,
emailId);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> (con.State == <span style="color: #2b91af;">ConnectionState</span>.Closed)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Open();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">string</span> UserID = <span style="color: #2b91af;">Convert</span>.ToString(cmd.ExecuteScalar());</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Dispose();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span><span style="color: blue;">return</span>
UserID;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">private</span> <span style="color: blue;">void</span>
clear_controls()</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtName.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtEmailId.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtAddress.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtContactNo.Text = <span style="color: blue;">string</span>.Empty;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>txtName.Focus();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal">
</div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">Add
a new page and name it “ActivateAccount.aspx”. This page will be opened
when new registered user click on the activate account link in his
email. On the page load it will check email id and user id from the
query string and then update the "Is_Approved" column to 1 i.e. True.
Then you can redirect him to your login page to log in.</span></li>
</ul>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;"><span style="font-size: medium;"><span style="font-family: Georgia,"Times New Roman",serif;"><span style="color: #cc0000;">Code</span></span></span> for ActivateAccount.aspx
page</span></div>
<ul style="text-align: left;">
<li><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-hansi-theme-font: major-latin;">In the code behind file (ActivateAccount.aspx.cs)
write the code as:</span></li>
</ul>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Data;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Data.SqlClient;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">using</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> System.Configuration;</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="color: blue; font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;">protected</span><span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"> <span style="color: blue;">void</span> Page_Load(<span style="color: blue;">object</span>
sender, <span style="color: #2b91af;">EventArgs</span> e)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">if</span> (!Page.IsPostBack)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>ActivateMyAccount();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">private</span> <span style="color: blue;">void</span>
ActivateMyAccount()</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">SqlConnection</span> con = <span style="color: blue;">new</span>
<span style="color: #2b91af;">SqlConnection</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: #2b91af;">SqlCommand</span> cmd = <span style="color: blue;">new</span>
<span style="color: #2b91af;">SqlCommand</span>();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">try</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlConnection</span>(<span style="color: #2b91af;">ConfigurationManager</span>.ConnectionStrings[<span style="color: #a31515;">"conStr"</span>].ConnectionString);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> ((!<span style="color: blue;">string</span>.IsNullOrEmpty(Request.QueryString[<span style="color: #a31515;">"UserID"</span>])) & (!<span style="color: blue;">string</span>.IsNullOrEmpty(Request.QueryString[<span style="color: #a31515;">"EmailId"</span>])))</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{<span style="mso-spacerun: yes;"> </span><span style="color: green;">//approve
account by setting Is_Approved to 1 i.e. True in the sql server table</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommand</span>(<span style="color: #a31515;">"UPDATE Tb_Registration SET Is_Approved=1 WHERE
UserID=@UserID AND EmailId=@EmailId"</span>, con);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"@UserID"</span>,
Request.QueryString[<span style="color: #a31515;">"UserID"</span>]);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Parameters.AddWithValue(<span style="color: #a31515;">"@EmailId"</span>,
Request.QueryString[<span style="color: #a31515;">"EmailId"</span>]);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">if</span> (con.State == <span style="color: #2b91af;">ConnectionState</span>.Closed)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>con.Open();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.ExecuteNonQuery();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>Response.Write(<span style="color: #a31515;">"You account has been
activated. You can <a href='Login.aspx'>Login</a> now! "</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">catch</span> (<span style="color: #2b91af;">Exception</span>
ex)</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: #2b91af;">ScriptManager</span>.RegisterStartupScript(<span style="color: blue;">this</span>, <span style="color: blue;">this</span>.GetType(),
<span style="color: #a31515;">"Message"</span>, <span style="color: #a31515;">"alert('Error occured : "</span> + ex.Message.ToString() + <span style="color: #a31515;">"');"</span>, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span><span style="color: blue;">return</span>;</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span><span style="color: blue;">finally</span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>{</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>con.Close();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;">
</span>cmd.Dispose();</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; text-autospace: none;">
<span style="font-family: "Cambria","serif"; mso-ascii-theme-font: major-latin; mso-bidi-font-family: Consolas; mso-hansi-theme-font: major-latin;"><span style="mso-spacerun: yes;"> </span>}</span></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-63193101429447355252013-08-09T04:59:00.003-07:002013-08-31T02:09:22.746-07:00WPF Live Kearning sites <div dir="ltr" style="text-align: left;" trbidi="on">
http://wpftutorial.co.in/WPFPanels/WPFGridPanelLayout.aspx<br />
<br />
http://www.wpftutorial.net/WPFIntroduction.html<br />
<br />
http://www.wpf-tutorial.com/about-wpf/what-is-wpf/<br />
<br />
http://www.wpf-training-guide.com/<br />
<br />
<br />
<table><tbody>
<tr title="WPF Grid Panel Introduction"><td><h3>
WPF Grid Panel
</h3>
The grid is a layout panel that arranges its child controls in a tabular structure
of rows and columns. Its similar to the HTML table tr and td tags
<br />
we can set the rows in grid with the help of "Grid.RowDefinitions" and set columns
with the help of "Grid.ColumnDefinitions".
<br />
we just need to add "RowDefinition" and "ColumnDefinition" as per our requirement
as below
</td>
</tr>
<tr>
<td>
Below just write down a WPF Grid Layout with two reows and two columns
</td>
</tr>
<tr>
<td>
<table>
<tbody>
<tr title="WPF Grid Panel Simple Example">
<td>
<h2>
.xaml</h2>
<br />
<textarea class="borderstype" readonly="readonly">
<grid>
<Grid.RowDefinitions>
<rowdefinition Height="1*"/>
<rowdefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<columndefinition Width="1*" />
<columndefinition Width="1*" />
</Grid.ColumnDefinitions>
</Grid>
</textarea>
</td>
<td>
<h2>
Output</h2>
<br />
<img alt="WPF Grid Layout" src="http://wpftutorial.co.in/ExampleImages/WPFGridLayout.png" title="WPF Grid Layout" />
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td>
We can position the controls inside the Grid using Grid.Column and Grid.Row as Below
</td>
</tr>
<tr>
<td>
<table>
<tbody>
<tr title="WPF Grid Panel Example">
<td>
<h2>
.xaml</h2>
<br />
<textarea class="borderstype" readonly="readonly">
<grid>
<Grid.RowDefinitions>
<rowdefinition Height="1*"/>
<rowdefinition Height="1*"/>
<rowdefinition Height="1*"/>
<rowdefinition Height="1*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<columndefinition Width="1*" />
<columndefinition Width="1*" />
</Grid.ColumnDefinitions>
<textblock Text="First Name" Grid.Column="0" Grid.Row="0"/>
<textbox Grid.Column="1" Grid.Row="0"/>
<textblock Text="First Name" Grid.Column="0" Grid.Row="1"/>
<textbox Grid.Column="1" Grid.Row="1"/>
<textblock Text="Age" Grid.Column="0" Grid.Row="2"/>
<textbox Grid.Column="1" Grid.Row="2"/>
<textblock Text="Gender" Grid.Column="0" Grid.Row="3"/>
<combobox Grid.Column="1" Grid.Row="3"/>
</Grid>
</textarea>
</td>
<td>
<h2>
Output</h2>
<br />
<img alt="WPF Grid Layout" src="http://wpftutorial.co.in/ExampleImages/GeidLayoutWithControlls.png" style="height: 300px; width: 300px;" title="WPF Grid Layout" />
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td>
<br />
<table border="1" cellpadding="5" title="WPF Grid Panel properties">
<tbody>
<tr>
<td style="background: orange;">
<b>Properties</b>
</td>
<td style="background: orange;">
<b>Explination</b>
</td>
</tr>
<tr>
<td>
x:Name
</td>
<td>
x:Name bahave like a unique ID of the controll. using this property we assign a
unique name to Grid Panel.
</td>
</tr>
<tr>
<td>
Height
</td>
<td>
we are setting an height for Grid Panel
</td>
</tr>
<tr>
<td>
Width
</td>
<td>
we are setting an Width for Grid Panel</td>
</tr>
<tr>
<td>
Background
</td>
<td>
using a background property we set background color to the Grid Panel</td>
</tr>
<tr>
<td>
DataContext
</td>
<td>
DataContext is most use full property in
Grid Panel we can set Model or Datastucture which
we need to bind to the grid
</td>
</tr>
<tr>
<td>
VerticalAlignment
</td>
<td>
using vertical alignment we set the position of the WPF
Grid Panel vertically. Its have
a following 4 properties 1.Bottom 2.Center 3.Stretch 4.Top
<br />
Basis of this properties WPF Grid placed out
</td>
</tr>
<tr>
<td>
HorizontalAlignment
</td>
<td>
using horizontal alignment we set the position of the WPF
Grid Panel horizontally. Its
have a following 4 properties 1.Center 2.Left 3.Right 4.Stretch
<br />
Basis of this properties WPF
Grid Panel placed out
</td>
</tr>
<tr>
<td>
ScrollViewer
</td>
<td>
when we need to show so many rows and columns in single WPF
Grid Panel then ScrollViewer
is in use
<br />
Using the scrollviewer we can set much more properties like can user able to scroll
the content.horizontal scroll bar,vertical scrollbar. there visibility,there style
etc.
<br />
it's have following properties to support for different variations 1.CanContentScroll
2.HorizontalScrollBarVisibility 3.IsDeferredScrollingEnabled 4.PanningDeceleration
5.PanningMode 6.PanningRatio 7.VerticalScrollBarVisibility
</td>
</tr>
<tr>
<td>
ShowGridLines
</td>
<td>
using show grid lines we can see a outerlibes of gris like grid border. we need
to set it as "True" or "False"
</td>
</tr>
<tr>
<td>
Style
</td>
<td>
Using a style we are setting style to the
Grid Panel from resourcedictionary
</td>
</tr>
<tr>
<td>
Visibility
</td>
<td>
We can Display and hide the
Grid Panel using this property. Its have three values to set
1.Collapsed 2.Hidden 3.Visible
</td>
</tr>
<tr>
<td>
Margin
</td>
<td>
We set margin to
Grid Panel from Left,Top,Right,Bottom
</td>
</tr>
<tr>
<td>
Opacity
</td>
<td>
Opacity can be used to make any element transparent or opaque.
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-86602620697917623932013-08-08T04:59:00.001-07:002013-08-08T04:59:56.434-07:00ViewState<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; font-family: Verdana, sans-serif; font-size: 12px; line-height: 18px;">ViewState</span><br />
<a href="http://helpingdotnet.blogspot.in/search/label/View%20State">http://helpingdotnet.blogspot.in/search/label/View%20State</a><br />
<div class="post hentry" style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #333333; font-family: Verdana; font-size: 12px; line-height: 18px; margin: 0.5em 0px 1.5em; padding-bottom: 1.5em; width: 600px;">
<h2 class="post-title entry-title" style="color: #bf0100; font-family: Arial, sans-serif; font-size: 26px; line-height: 1.2em; margin: 0px 0px 5px; padding: 10px 0px 0px;">
<a href="http://helpingdotnet.blogspot.in/2013/05/view-state.html" style="color: #bf0100; display: block; text-decoration: none;">View State</a></h2>
<div class="post-header-line-1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; clear: both; margin: 5px 0px; padding: 5px;">
<span class="post-comment-link" style="float: right;"><a class="comment-link" href="http://helpingdotnet.blogspot.in/2013/05/view-state.html#comment-form" style="background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFQK4ygkEPC8nL0To1mxocoZ65adpwvw4PNcUM1CRGmgGv9uHcpkukCjuqvlSHBfgnfr5t1YfzW91xULf9TF_rAtYLH8d_hpsJH_Uymp___fO4syaSAMy_f-Slff7RhARexxG9a7YBuCYJ/s400/icon_comments.png); background-position: initial initial; background-repeat: no-repeat no-repeat; color: #666666; margin-left: 0.6em; padding-left: 20px; text-decoration: none; white-space: nowrap;">0 comments</a></span><span class="clock" style="background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO-QQOQGhuOHXts7IQTvHM_YmoTJEQ3dF3iLJTnpGvbn2aEwB0-piLXvogyXFKNKBtEnqrI1_czAGH1ziKLWmwGd-osB17UgCFNHnWoO2hYaVSnTQ3V_XJWBxmAXSpa4XYSOCAqK2qscE/s400/writer.png); background-position: initial initial; background-repeat: no-repeat no-repeat; padding-left: 20px;">Posted by <span class="fn">Rahul Kharde at 3:37 AM</span></span><span class="post-icons"></span></div>
<div class="post-body entry-content">
<br /><div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">“<b>ViewState is used to retain the state of server-side objects between page post backs.</b>”</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<br /></div>
<ul style="list-style-type: circle;">
<li style="color: #ac0100; line-height: 1.5em;"><span style="color: black; font-family: Symbol; font-size: 9pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"></span></span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">ViewState is how ASP.NET Web pages persists data across requests.</span></li>
<li style="color: #ac0100; line-height: 1.5em;"><span style="color: black; font-family: Symbol; font-size: 9pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">ViewState can be encrypted to address security concerns.</span></li>
<li style="color: #ac0100; line-height: 1.5em;"><b><span style="color: black; font-family: Symbol; font-size: 9pt; font-weight: normal;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span></b><b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt; font-weight: normal;">ViewState values are accessible with the same page</span></b></li>
<li style="color: #ac0100; line-height: 1.5em;"><span style="color: black; font-family: Symbol; font-size: 9pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">ViewState is a state management technique build in ASP.NET.</span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"></span></li>
<li style="color: #ac0100; line-height: 1.5em;"><span style="color: black; font-family: Symbol; font-size: 9pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">ViewState basically maintains the state of the pages between postbacks.</span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"></span></li>
<li style="color: #ac0100; line-height: 1.5em;"><span style="color: black; font-family: Symbol; font-size: 9pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">ViewState maintain the session within the same page.</span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"></span></li>
<li style="color: #ac0100; line-height: 1.5em;"><span style="color: black; font-family: Symbol; font-size: 9pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">ViewState allows the state of objects to be stored in a hidden field on the page.</span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"></span></li>
</ul>
<div class="MsoListParagraphCxSpLast" style="line-height: normal; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">Where the viewstate is stored after the page postback?</span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"></span></div>
<div style="margin: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">Ans:</span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"> ViewState is stored in a hidden field on the page at client side. ViewState is transported to the client and back to the server, and is not stored on the server or any other external source.</span></div>
<div style="margin: 0in;">
<br /></div>
<div style="margin: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">How long the items in ViewState exists?</span></b></div>
<div style="margin: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">Ans:</span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"> They exist for the life of the current page.</span></div>
<div style="margin: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">What is the lifespan for items stored in the ViewState?</span></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">Ans:</span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"> </span><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">The items stored in <i>ViewState</i> live until the lifetime of the current page expires including postbacks to same page.</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">View state is client-side or server side state management techenique?</span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"><br /><b>Ans:</b> View state is client-side state management techenique</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"><br /><b>How do you enable or disable a ViewState at the page level?</b><b><br /></b>Ans: At the page level you can enable or disable ViewState using EnableViewState property of the page.</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">What is the name of the hidden form field in which ViewState of the page is saved? </span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"><br /><b>Ans:</b> __ViewState</span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 0in;">
<b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">Is ViewState of one page available to another page?</span></b><b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"><br /></span></b><b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;">Ans:</span></b><span style="color: black; font-family: Verdana, sans-serif; font-size: 9pt;"> No, ViewState of a Page is available only in that page. You cannot access ViewState of one page from another page.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<a href="http://helpingdotnet.blogspot.in/2013/05/view-state.html" style="color: #666666; text-decoration: none;"><div class="MBT-readmore" style="background-color: #ac0100; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; border-top-left-radius: 6px; border-top-right-radius: 6px; border: 2px solid rgb(207, 207, 207); color: white; cursor: pointer; float: right; font-family: sans-serif, arial; font-size: 11px; font-weight: bold; line-height: normal; margin: 5px 0px; padding: 4px;">
Read More »</div>
</a><div style="clear: both;">
</div>
<span class="post-labels" style="background-color: transparent; background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgke-kvc7lhAdQ8v-ErlHGP8_eeJeUu3u6RNpgHwbhhqMTgnMxJ6kqEtCXTkj4ZwseG_ODwbYMIQCrEEJTQmX-So1OnTFKPjrN15fjH-1z8JOddIJoQ_PUZ071N26AbLfoFBMl_3aoib98/s400/tag_red.png); background-position: 0% 100%; background-repeat: no-repeat no-repeat; padding-left: 20px;">Tags: <a href="http://helpingdotnet.blogspot.in/search/label/ASP.Net" rel="tag" style="color: #666666; text-decoration: none;">ASP.Net</a>, <a href="http://helpingdotnet.blogspot.in/search/label/HTML" rel="tag" style="color: #666666; text-decoration: none;">HTML</a>, <a href="http://helpingdotnet.blogspot.in/search/label/View%20State" rel="tag" style="color: #666666; text-decoration: none;">View State</a></span><div style="clear: both;">
</div>
</div>
<div class="post-footer" style="color: #666666; font-family: Arial, sans-serif; font-size: 9px; letter-spacing: 0.1em; line-height: 1.4em; margin: 0.75em 0px; text-transform: uppercase;">
<div class="post-footer-line post-footer-line-1">
</div>
<div class="post-footer-line post-footer-line-2">
</div>
<div class="post-footer-line post-footer-line-3">
</div>
</div>
</div>
<div class="post hentry" style="background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #333333; font-family: Verdana; font-size: 12px; line-height: 18px; margin: 0.5em 0px 1.5em; padding-bottom: 1.5em; width: 600px;">
<a href="" name="2250889895107054922" style="color: #bf0100;"></a><h2 class="post-title entry-title" style="color: #bf0100; font-family: Arial, sans-serif; font-size: 26px; line-height: 1.2em; margin: 0px 0px 5px; padding: 10px 0px 0px;">
<a href="http://helpingdotnet.blogspot.in/2011/09/accessing-view-state-of-one-page-on.html" style="color: #bf0100; display: block; text-decoration: none;">Accessing View State of one page on other ASP.Net Page</a></h2>
<div class="post-header-line-1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; clear: both; margin: 5px 0px; padding: 5px;">
<span class="post-comment-link" style="float: right;"><a class="comment-link" href="http://helpingdotnet.blogspot.in/2011/09/accessing-view-state-of-one-page-on.html#comment-form" style="background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFQK4ygkEPC8nL0To1mxocoZ65adpwvw4PNcUM1CRGmgGv9uHcpkukCjuqvlSHBfgnfr5t1YfzW91xULf9TF_rAtYLH8d_hpsJH_Uymp___fO4syaSAMy_f-Slff7RhARexxG9a7YBuCYJ/s400/icon_comments.png); background-position: initial initial; background-repeat: no-repeat no-repeat; color: #666666; margin-left: 0.6em; padding-left: 20px; text-decoration: none; white-space: nowrap;">0 comments</a></span><span class="clock" style="background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjO-QQOQGhuOHXts7IQTvHM_YmoTJEQ3dF3iLJTnpGvbn2aEwB0-piLXvogyXFKNKBtEnqrI1_czAGH1ziKLWmwGd-osB17UgCFNHnWoO2hYaVSnTQ3V_XJWBxmAXSpa4XYSOCAqK2qscE/s400/writer.png); background-position: initial initial; background-repeat: no-repeat no-repeat; padding-left: 20px;">Posted by <span class="fn">Rahul Kharde at 11:21 PM</span></span><span class="post-icons"></span></div>
<div class="post-body entry-content">
<br /><div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;">There was one question always occurs, can we access <b>viewstate</b> one page to other page? And answer is <b>Yes</b>, </span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;"><b>“Is it possible to access the ViewState variable of one page on another page?”</b></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;">We can access the <b>viewstate</b> variables across pages. This is only possible if <b>Cross Page Posting</b> or <b>Server.transfer</b> is used to redirect the user to other page. If<b>Response.redirect</b> is used, then <b>ViewState</b> cannot be accessed across pages.</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;">Here I have two pages Default.aspx and Default2.aspx.I have one Textbox and button control in first page (Default.aspx), after submit button it will be redirect to other page (Default2.aspx) were u get first page <b>viewstate</b></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;"><b>Default.aspx</b></span><br /><br /><span style="font-size: x-small;"><br /><span style="color: blue;"></span></span><span style="font-size: x-small;"><span style="color: blue;"><</span><span style="color: #a31515;">html</span> <span style="color: red;">xmlns</span><span style="color: blue;">="http://www.w3.org/1999/xhtml"></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;"><</span><span style="color: #a31515;">head</span> <span style="color: red;">id</span><span style="color: blue;">="Head1"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"><</span><span style="color: #a31515;">title</span><span style="color: blue;">></span>Untitled Page<span style="color: blue;"></</span><span style="color: #a31515;">title</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;"></</span><span style="color: #a31515;">head</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;"><</span><span style="color: #a31515;">body</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"><</span><span style="color: #a31515;">form</span> <span style="color: red;">id</span><span style="color: blue;">="form2"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"><</span><span style="color: #a31515;">div</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"><</span><span style="color: #a31515;">asp</span><span style="color: blue;">:</span><span style="color: #a31515;">TextBox</span> <span style="color: red;">ID</span><span style="color: blue;">="TextBox1"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"></span> <span style="color: blue;"></</span><span style="color: #a31515;">asp</span><span style="color: blue;">:</span><span style="color: #a31515;">TextBox</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"><</span><span style="color: #a31515;">br</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"><</span><span style="color: #a31515;">asp</span><span style="color: blue;">:</span><span style="color: #a31515;">Button</span> <span style="color: red;">ID</span><span style="color: blue;">="Button1"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">OnClick</span><span style="color: blue;">="Button1_Click"</span> <span style="color: red;">Text</span><span style="color: blue;">="Submit"</span><span style="color: red;">Style</span><span style="color: blue;">="</span><span style="color: red;">height</span>: <span style="color: blue;">26px"</span> <span style="color: blue;">/></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"></</span><span style="color: #a31515;">div</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;"></</span><span style="color: #a31515;">form</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;"></</span><span style="color: #a31515;">body</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;"></</span><span style="color: #a31515;">html</span><span style="color: blue;">></span></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;"><b>Code Behind</b></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;">protected</span> <span style="color: blue;">void</span> Page_Load(<span style="color: blue;">object</span> sender, EventArgs e)</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">{</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">}</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;">public</span> StateBag ReturnViewState()</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">{</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;">return</span> ViewState;</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">}</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;">protected</span> <span style="color: blue;">void</span> Button1_Click(<span style="color: blue;">object</span> sender, EventArgs e)</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">{</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> ViewState[<span style="color: #a31515;">"test"</span>] = TextBox1.Text.ToString();</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> Server.Transfer(<span style="color: #a31515;">"Default2.aspx"</span>);</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">}</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;"><b>Defualt2.aspx</b></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"><span style="color: blue;">protected</span> <span style="color: blue;">void</span> Page_Load(<span style="color: blue;">object</span> sender, EventArgs e)</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">{</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> StateBag objStateBag = <span style="color: blue;">null</span>;</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> <span style="color: blue;">if</span> (PreviousPage != <span style="color: blue;">null</span>)</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> {</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> Object objPreviousPage = (Object)PreviousPage;</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> System.Reflection.MethodInfo objMethod = objPreviousPage.GetType().GetMethod(<span style="color: #a31515;">"ReturnViewState"</span>);</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> objStateBag = (StateBag)objMethod.Invoke(objPreviousPage, <span style="color: blue;">null</span>);</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> }</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;"> Response.Write(<span style="color: #a31515;">"First Page Textbox value : "</span> + objStateBag[<span style="color: #a31515;">"test"</span>].ToString());</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-size: x-small;">}</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;">Suppose we entered “Viewstate testing” in first page text box, </span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;"><b>Output</b></span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;"><b>First Page Textbox value :</b> Viewstate testing</span></div>
<div class="MsoNormal" style="font-family: Verdana, sans-serif; line-height: normal;">
<span style="font-size: x-small;">Download code <a href="https://sites.google.com/site/learndotnetinfo/ViewState.zip" style="color: #666666; text-decoration: none;"><span style="color: blue;">here</span></a></span></div>
</div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-33866980287949001022013-08-08T02:23:00.003-07:002013-08-08T02:23:56.759-07:00All about Operator in C <div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background: white; border-bottom: solid #EFF0F1 1.0pt; border: none; mso-border-bottom-alt: solid #EFF0F1 .75pt; mso-element: para-border-div; padding: 0cm 0cm 4.0pt 0cm;">
<h1 style="background-position: initial initial; background-repeat: initial initial; border: none; margin-top: 0cm; padding: 0cm;">
<u><span style="color: #75a54b; font-family: "Trebuchet MS","sans-serif"; font-size: 18.0pt; font-weight: normal; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold;">What is Operators in C :</span></u><u><span style="color: #75a54b; font-family: "Trebuchet MS","sans-serif"; font-size: 24.0pt; font-weight: normal; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold;"><o:p></o:p></span></u></h1>
</div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; line-height: 14.7pt; margin: 0cm 0cm 0.0001pt;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 9.0pt;">"Operator
is a symbol that is used to perform mathematical operations."<o:p></o:p></span></div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; line-height: 14.7pt; margin: 0cm 0cm 0.0001pt;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 9.0pt;">When
we use a variable in a program then we have to mention the type of data. This
can be handled using data type in C.<o:p></o:p></span></div>
<div style="background-color: white; background-position: initial initial; background-repeat: initial initial; line-height: 14.7pt; margin: 0cm 0cm 0.0001pt;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 9.0pt;">Followings
are the most commonly used data types in C.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border: 1pt outset rgb(116, 101, 61); width: 80%px;">
<tbody>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Operator Name<o:p></o:p></span></b></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Operators<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Assignment<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">=<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Arithmetic<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">+, -, *, /, %<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Logical<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">&&, ||, !<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Relational<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;"><,>, <=,>=, ==, !=<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Shorthand<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">+=, -=, *=, /=, %=<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Unary<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">++, --<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Conditional<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">(<condition style="margin: 0px; padding: 0px;">)?<true_part style="margin: 0px; padding: 0px;">:<false_part style="margin: 0px; padding: 0px;">;<o:p></o:p></false_part></true_part></condition></span></div>
</td>
</tr>
<tr>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">Bitwise<o:p></o:p></span></div>
</td>
<td style="border: inset #74653D 1.0pt; mso-border-alt: inset #74653D .75pt; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: #333333; font-family: "Verdana","sans-serif"; font-size: 10.0pt; line-height: 115%;">&, |, ^, <><,>>, ~<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">1. Assignment
Operator</a><o:p></o:p></div>
<div class="MsoNormal">
It is used to assign a value to variable.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate assignment operator .*/<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
a,b;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
a
= 53;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\t
Value of A : %d",a); //
53<o:p></o:p></div>
<div class="MsoNormal">
b
= a; // Interchange of value
using assignment<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Value of B : %d",b); // 53<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
}<o:p></o:p></div>
<div class="MsoNormal">
<a href="">1. Assignment
Operator</a><o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">2. Arithmetic
Operators</a><o:p></o:p></div>
<div class="MsoNormal">
It is also called as 'Binary operators'. It is used to
perform arithmetical operations. These operators operate on two operands.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate arithmetic operators .*/<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
a,b,c,d,e,f,g;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\t
Enter First Number :"); //
5<o:p></o:p></div>
<div class="MsoNormal">
scanf("%d",&a);<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\t
Enter Second Number :"); //
2<o:p></o:p></div>
<div class="MsoNormal">
scanf("%d",&b);<o:p></o:p></div>
<div class="MsoNormal">
c
= a + b;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Addition is : %d",c); // 7<o:p></o:p></div>
<div class="MsoNormal">
d
= a - b;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Subtraction is : %d",d); // 3<o:p></o:p></div>
<div class="MsoNormal">
e
= a * b;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Multiplication is : %d",e);
// 10<o:p></o:p></div>
<div class="MsoNormal">
f
= a / b;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Division is : %d",f); // 2<o:p></o:p></div>
<div class="MsoNormal">
g
= a % b;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Modulus is : %d",g); // 1<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
} <o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">3. Logical Operators</a><o:p></o:p></div>
<div class="MsoNormal">
Sometimes, we have to check more than one condition at
a time then it is operator which is primarily used to check more than two
conditions. This operator returns 1 if condition is true otherwise 0.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate logical operators .*/<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
no1=2, no2=5;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
%d",(no1 && no2));
// returns 1<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
%d",(no1 || no2)); //
returns 1<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
}<o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">4. Relational
Operators</a><o:p></o:p></div>
<div class="MsoNormal">
It is also used to check conditions. These operators
return 1 if condition is true otherwise 0.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate Relational operators .*/<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
a=6, b=2;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
A<=B : %d",(a<=b)); // 0 - False<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
A>B : %d",(a>b)); // 1 - True<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
A!=B : %d",(a!=b)); // 1 - True<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
}<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">5. Shorthand
Operators</a><o:p></o:p></div>
<div class="MsoNormal">
It is used to perform mathematical operations at which
the result or output can affect on operands.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate shorthand operators .*/<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
a,b;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
a
= 18;<o:p></o:p></div>
<div class="MsoNormal">
b
= 4;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\t
Value of A : %d",a); // 18<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\t
Using of B : %d",b); // 4<o:p></o:p></div>
<div class="MsoNormal">
b
+= a ; // b = b + a<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n\t
Using += (i.e b=b+a): %d",b); // 22<o:p></o:p></div>
<div class="MsoNormal">
//
Change the operator as -=, *=, /=, %=<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
}<o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">6. Unary Operators</a><o:p></o:p></div>
<div class="MsoNormal">
It operates on a single operand. Therefore, this
operator is called as 'unary operator.' It is used to increase or
decrease the value of variable by 1.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate Unary / Ternary operators .<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
a=4, b;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of A : %d",a); // 4<o:p></o:p></div>
<div class="MsoNormal">
a++;
// Post<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of A : %d",a); // 5<o:p></o:p></div>
<div class="MsoNormal">
++a;
// Pre<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of A : %d",a); // 6<o:p></o:p></div>
<div class="MsoNormal">
b=--a;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of A : %d",a); // 5<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of B : %d",b); // 5<o:p></o:p></div>
<div class="MsoNormal">
b=a++;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of A : %d",a); // 6<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of B : %d",b); // 5<o:p></o:p></div>
<div class="MsoNormal">
b++;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
Value of B : %d",b); // 6<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
}<o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">7. Conditional
Operator</a><o:p></o:p></div>
<div class="MsoNormal">
Conditional operator is also called as 'ternary
operator.' It is widely used to execute condition in true part or in
false part. It operates on three operands. The logical or relational
operator can be used to check conditions.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
/* Program to demonstrate conditional operator .*/<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
#include <stdio.h><o:p></o:p></div>
<div class="MsoNormal">
#include <conio.h><o:p></o:p></div>
<div class="MsoNormal">
void main()<o:p></o:p></div>
<div class="MsoNormal">
{<o:p></o:p></div>
<div class="MsoNormal">
int
a, b=3;<o:p></o:p></div>
<div class="MsoNormal">
clrscr();<o:p></o:p></div>
<div class="MsoNormal">
a
= 5;<o:p></o:p></div>
<div class="MsoNormal">
printf("\n\n
A is less than B ? ");<o:p></o:p></div>
<div class="MsoNormal">
<!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_2" o:spid="_x0000_i1026" type="#_x0000_t75"
alt="Description: conditional operator" style='width:164.25pt;height:16.5pt;
visibility:visible;mso-wrap-style:square'>
<v:imagedata src="file:///C:\Users\hcl\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title="conditional operator"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: conditional operator" border="0" height="22" src="file:///C:/Users/hcl/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png" v:shapes="Picture_x0020_2" width="219" /><!--[endif]--> // No<o:p></o:p></div>
<div class="MsoNormal">
getch();<o:p></o:p></div>
<div class="MsoNormal">
}<o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 576px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 3.75pt;" valign="top">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 100%px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;" valign="top">
<div class="MsoNormal">
<a href="">8. Bitwise Operators</a><o:p></o:p></div>
<div class="MsoNormal">
Bitwise operators are used for manipulation of data at
a bit level. They can be directly applied to char, short int and long.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
------ Not available -------<o:p></o:p></div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
</div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<br /></div>
<h1 class="title" id="page-title" style="font-family: Tahoma, Geneva, sans-serif; font-size: 25px; font-weight: 500; line-height: 25px; margin: 0px auto 0px 20px; padding: 0px; word-spacing: 3px;">
C Programming Operators</h1>
<div class="tabs" style="font-family: Tahoma, Geneva, sans-serif; font-size: 12px; word-spacing: 3px;">
</div>
<div class="content-middle" style="font-family: Tahoma, Geneva, sans-serif; font-size: 12px; word-spacing: 3px;">
<div class="region region-content">
<div class="block block-system" id="block-system-main" style="margin: 0px;">
<div class="content">
<div about="/c-programming/c-operators" class="node node-c-programming node-promoted clearfix" id="node-46" style="margin: 20px 0px; padding-bottom: 15px; padding-left: 10px; padding-right: 10px;" typeof="sioc:Item foaf:Document">
<div class="content clearfix" style="margin: 3px 0px; padding-left: 3px;">
<div class="field field-name-body field-type-text-with-summary field-label-hidden">
<div class="field-items">
<div class="field-item even" property="content:encoded">
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Operators are the symbol which operates on value or a variable. For example: <var style="font-size: 11px; font-style: normal;">+</var> is a operator to perform addition.</div>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
C programming language has wide range of operators to perform various operations. For better understanding of operators, these operators can be classified as:</div>
<table border="1" cellpadding="1" cellspacing="1" style="border-collapse: collapse; border: 3px solid rgb(85, 0, 85); margin-top: 15px; width: 500px;" summary="Types of operators in C programming Language."><tbody style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;">
<tr><th style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Operators In C Programming</th></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#arithmetic" style="color: #000fff; text-decoration: none;">Arithmetic Operators</a></td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#increment" style="color: #000fff; text-decoration: none;">Increment and Decrement Operators</a></td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#assignment" style="color: #000fff; text-decoration: none;">Assignment Operators</a></td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#relational" style="color: #000fff; text-decoration: none;">Relational Operators</a></td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#logical" style="color: #000fff; text-decoration: none;">Logical Operators</a></td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#conditional" style="color: #000fff; text-decoration: none;">Conditional Operators</a></td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#bitwise" style="color: #000fff; text-decoration: none;">Bitwise Operators</a></td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;"><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-operators#other" style="color: #000fff; text-decoration: none;">Special Operators</a></td></tr>
</tbody></table>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="arithmetic"></a>Arithmetic Operators</h3>
<table border="1" cellpadding="1" cellspacing="1" style="border-collapse: collapse; border: 3px solid rgb(85, 0, 85); margin-top: 15px; width: 500px;" summary="List of all arithmetic operators in C programming."><thead>
<tr><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Operator</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Meaning Of Operator</th></tr>
</thead><tbody style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;">
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">+</td><td style="font-size: 1em; padding: 2px 7px 0px;">addition or unary plus</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">-</td><td style="font-size: 1em; padding: 2px 7px 0px;">subtraction or unary minus</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">*</td><td style="font-size: 1em; padding: 2px 7px 0px;">multiplication</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">/</td><td style="font-size: 1em; padding: 2px 7px 0px;">division</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">%</td><td style="font-size: 1em; padding: 2px 7px 0px;">remainder after division( modulo division)</td></tr>
</tbody></table>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Example of working of arithmetic operators</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><code style="display: block; font-family: 'Courier New', Courier, monospace; line-height: 17px; overflow: auto; padding-left: 20px;">
/* Program to demonstrate the working of arithmetic operators in C. */
#include <stdio.h>
int main(){
int a=9,b=4,c;
c=a+b;
printf("a+b=%d\n",c);
c=a-b;
printf("a-b=%d\n",c);
c=a*b;
printf("a*b=%d\n",c);
c=a/b;
printf("a/b=%d\n",c);
c=a%b;
printf("Remainder when a divided by b=%d\n",c);
return 0;
}
}</code></pre>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><samp style="background-color: #f6f6f2; border: none; display: block; margin-left: -20px; padding: 10px 0px 10px 20px;">a+b=13
a-b=5
a*b=36
a/b=2
Remainder when a divided by b=1</samp></pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<b>Explanation</b></div>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Here, the operators +, - and * performed normally as you expected. In normal calculation, <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">9/4</code> equals to 2.25. But, the output is 2 in this program. It is because, a and b are both integers. So, the output is also integer and the compiler neglects the term after decimal point and shows answer 2 instead of 2.25. And, finally <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">a%b</code> is 1,i.e. ,when<code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">a=9</code> is divided by <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">b=4</code>, remainder is 1.</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">Suppose a=5.0, b=2.0, c=5 and d=2
In C programming,
a/b=2.5
a/d=2.5
c/b=2.5
c/d=2
</pre>
<div class="note" style="font-size: 10px; line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<b>Note:</b> % operator can only be used with integers.</div>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="increment"></a>Increment and decrement operators</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
In C, <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">++</code> and <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">--</code> are called increment and decrement operators respectively. Both of these operators are unary operators, i.e, used on single operand. <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">++</code> adds 1 to operand and <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">--</code> subtracts 1 to operand respectively. For example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">Let a=5 and b=10
a++; //a becomes 6
a--; //a becomes 5
++a; //a becomes 6
--a; //a becomes 5
</pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<a href="https://www.megaproxy.com/go/http://www.programiz.com/article/increment-decrement-operator-difference-prefix-postfix" style="color: #000fff; text-decoration: none;" title="increment and decrement operator detail"><strong>Difference between ++ and -- operator as postfix and prefix</strong></a></div>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
When <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">i++</code> is used as prefix(like: <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">++var</code>), <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">++var</code> will increment the value of <var style="font-size: 11px; font-style: normal;">var</var> and then return it but, if <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">++</code> is used as postfix(like: var++), operator will return the value of operand first and then only increment it. This can be demonstrated by an example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><code style="display: block; font-family: 'Courier New', Courier, monospace; line-height: 17px; overflow: auto; padding-left: 20px;">
#include <stdio.h>
int main(){
int c=2,d=2;
printf("%d\n",c++); //this statement displays 2 then, only c incremented by 1 to 3.
printf("%d",++c); //this statement increments 1 to c then, only c is displayed.
return 0;
}
</code>
</pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<b>Output</b></div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><samp style="background-color: #f6f6f2; border: none; display: block; margin-left: -20px; padding: 10px 0px 10px 20px;">2
4
</samp></pre>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="assignment"></a>Assignment Operators</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
The most common assignment operator is <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">=</code>. This operator assigns the value in right side to the left side. For example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">var=5 //5 is assigned to var
a=c; //value of c is assigned to a
5=c; // Error! 5 is a constant.
</pre>
<table border="1" cellpadding="1" cellspacing="1" style="border-collapse: collapse; border: 3px solid rgb(85, 0, 85); margin-top: 15px; width: 500px;" summary="List of all assignment operators in C programming"><thead>
<tr><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Operator</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Example</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Same As</th></tr>
</thead><tbody style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;">
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">=</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=b</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=b</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">+=</td><td style="font-size: 1em; padding: 2px 7px 0px;">a+=b</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=a+b</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">-=</td><td style="font-size: 1em; padding: 2px 7px 0px;">a-=b</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=a-b</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">*=</td><td style="font-size: 1em; padding: 2px 7px 0px;">a*=b</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=a*b</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">/=</td><td style="font-size: 1em; padding: 2px 7px 0px;">a/=b</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=a/b</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">%=</td><td style="font-size: 1em; padding: 2px 7px 0px;">a%=b</td><td style="font-size: 1em; padding: 2px 7px 0px;">a=a%b</td></tr>
</tbody></table>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="relational"></a>Relational Operator</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Relational operators checks relationship between two operands. If the relation is true, it returns value 1 and if the relation is false, it returns value 0. For example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">a>b
</pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Here, <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">></code> is a relational operator. If <var style="font-size: 11px; font-style: normal;">a</var> is greater than <var style="font-size: 11px; font-style: normal;">b</var>, <var style="font-size: 11px; font-style: normal;">a>b</var> returns 1 if not then, it returns 0.</div>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Relational operators are used in decision making and loops in C programming.</div>
<table border="1" cellpadding="1" cellspacing="1" style="border-collapse: collapse; border: 3px solid rgb(85, 0, 85); margin-top: 15px; width: 500px;" summary="List of all relational operators in C."><thead>
<tr><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Operator</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Meaning Of Operator</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Example</th></tr>
</thead><tbody style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;">
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">==</td><td style="font-size: 1em; padding: 2px 7px 0px;">Equal to</td><td style="font-size: 1em; padding: 2px 7px 0px;">5==3 returns false (0)</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">></td><td style="font-size: 1em; padding: 2px 7px 0px;">Greater than</td><td style="font-size: 1em; padding: 2px 7px 0px;">5>3 returns true (1)</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;"><</td><td style="font-size: 1em; padding: 2px 7px 0px;">Less than</td><td style="font-size: 1em; padding: 2px 7px 0px;">5<3 returns false (0)</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">!=</td><td style="font-size: 1em; padding: 2px 7px 0px;">Not equal to</td><td style="font-size: 1em; padding: 2px 7px 0px;">5!=3 returns true(1)</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">>=</td><td style="font-size: 1em; padding: 2px 7px 0px;">Greater than or equal to</td><td style="font-size: 1em; padding: 2px 7px 0px;">5>=3 returns true (1)</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;"><=</td><td style="font-size: 1em; padding: 2px 7px 0px;">Less than or equal to</td><td style="font-size: 1em; padding: 2px 7px 0px;">5<=3 return false (0)</td></tr>
</tbody></table>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="logical"></a>Logical Operators</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Logical operators are used to combine expressions containing relation operators. In C, there are 3 logical operators:</div>
<table border="1" cellpadding="1" cellspacing="1" style="border-collapse: collapse; border: 3px solid rgb(85, 0, 85); margin-top: 15px; width: 500px;" summary="Logical Operators in C programming"><thead>
<tr><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Operator</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Meaning Of Operator</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Example</th></tr>
</thead><tbody style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;">
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">&&</td><td style="font-size: 1em; padding: 2px 7px 0px;">Logial AND </td><td style="font-size: 1em; padding: 2px 7px 0px;">If c=5 and d=2 then,((c==5) && (d>5)) returns false.</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">||</td><td style="font-size: 1em; padding: 2px 7px 0px;">Logical OR</td><td style="font-size: 1em; padding: 2px 7px 0px;">If c=5 and d=2 then, ((c==5) || (d>5)) returns true.</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">!</td><td style="font-size: 1em; padding: 2px 7px 0px;">Logical NOT</td><td style="font-size: 1em; padding: 2px 7px 0px;">If c=5 then, !(c==5) returns false.</td></tr>
</tbody></table>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<b>Explanation</b></div>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
For expression, <var style="font-size: 11px; font-style: normal;">((c==5) && (d>5))</var> to be true, both <var style="font-size: 11px; font-style: normal;">c==5</var> and <var style="font-size: 11px; font-style: normal;">d>5</var> should be true but, (d>5) is false in the given example. So, the expression is false. For expression <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">((c==5) || (d>5))</code> to be true, either the expression should be true. Since, <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">(c==5)</code> is true. So, the expression is true. Since, expression <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">(c==5)</code> is true, <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">!(c==5)</code> is false.</div>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="conditional"></a>Conditional Operator</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Conditional operator takes three operands and consists of two symbols ? and : . Conditional operators are used for decision making in C. For example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">c=(c>0)?10:-10;
</pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
If <var style="font-size: 11px; font-style: normal;">c</var> is greater than 0, value of <var style="font-size: 11px; font-style: normal;">c</var> will be 10 but, if <var style="font-size: 11px; font-style: normal;">c</var> is less than 0, value of <var style="font-size: 11px; font-style: normal;">c</var> will be -10.</div>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="bitwise"></a>Bitwise Operators</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
A bitwise operator works on each bit of data. Bitwise operators are used in bit level programming.</div>
<table border="1" cellpadding="1" cellspacing="1" style="border-collapse: collapse; border: 3px solid rgb(85, 0, 85); margin-top: 15px; width: 500px;" summary="Bitwise operators in C"><thead>
<tr><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Operators</th><th scope="col" style="background-color: #550055; border: 1px solid rgb(85, 0, 85); color: white; font-size: 15px; padding: 4px 0px 3px 7px; text-transform: capitalize;">Meaning Of Operators</th></tr>
</thead><tbody style="border-top-color: rgb(204, 204, 204); border-top-style: solid; border-top-width: 1px;">
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">&</td><td style="font-size: 1em; padding: 2px 7px 0px;">Bitwise AND</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">|</td><td style="font-size: 1em; padding: 2px 7px 0px;">Bitwise OR</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;">^</td><td style="font-size: 1em; padding: 2px 7px 0px;">Bitwise exclusive OR</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">~</td><td style="font-size: 1em; padding: 2px 7px 0px;">Bitwise complement</td></tr>
<tr><td style="font-size: 1em; padding: 2px 7px 0px;"><<</td><td style="font-size: 1em; padding: 2px 7px 0px;">Shift left</td></tr>
<tr style="background-color: #f1f1f1;"><td style="font-size: 1em; padding: 2px 7px 0px;">>></td><td style="font-size: 1em; padding: 2px 7px 0px;">Shift right</td></tr>
</tbody></table>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Bitwise operator is advance topic in programming . Learn more about <a href="https://www.megaproxy.com/go/http://www.programiz.com/article/bitwise-operator-c-programming" style="color: #000fff; text-decoration: none;" title="Bitwise operators">bitwise operator in C programming</a>.</div>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
<a href="" name="other"></a>Other Operators</h3>
<h4 style="color: #00002f; font-size: 15px; margin-bottom: -9px; padding: 0px;">
Comma Operator</h4>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Comma operators are used to link related expressions together. For example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">int a,c=5,d;</pre>
<h4 style="color: #00002f; font-size: 15px; margin-bottom: -9px; padding: 0px;">
The sizeof operator</h4>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
It is a unary operator which is used in finding the size of data type, constant, arrays, structure etc. For example:</div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><code style="display: block; font-family: 'Courier New', Courier, monospace; line-height: 17px; overflow: auto; padding-left: 20px;">
#include <stdio.h>
int main(){
int a;
float b;
double c;
char d;
printf("Size of int=%d bytes\n",sizeof(a));
printf("Size of float=%d bytes\n",sizeof(b));
printf("Size of double=%d bytes\n",sizeof(c));
printf("Size of char=%d byte\n",sizeof(d));
return 0;
}</code></pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<b>Output</b></div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><samp style="background-color: #f6f6f2; border: none; display: block; margin-left: -20px; padding: 10px 0px 10px 20px;">Size of int=4 bytes
Size of float=4 bytes
Size of double=8 bytes
Size of char=1 byte
</samp></pre>
<h3 style="color: #00002f; font-size: 18px; font-weight: 500; margin-bottom: -9px; padding: 0px;">
Conditional operators (?:)</h3>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
Conditional operators are used in decision making in C programming, i.e, executes different statements according to test condition whether it is either true or false.</div>
<h4 style="color: #00002f; font-size: 15px; margin-bottom: -9px; padding: 0px;">
Syntax of conditional operators</h4>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;">conditional_expression?expression1:expression2</pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
If the test condition is true, <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">expression1</code> is returned and if false <code style="font-family: Tahoma, Geneva, sans-serif; font-size: 11px;">expression2</code> is returned.</div>
<h4 style="color: #00002f; font-size: 15px; margin-bottom: -9px; padding: 0px;">
Example of conditional operator</h4>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><code style="display: block; font-family: 'Courier New', Courier, monospace; line-height: 17px; overflow: auto; padding-left: 20px;">#include <stdio.h>
int main(){
char feb;
int days;
printf("Enter l if the year is leap year otherwise enter 0: ");
scanf("%c",&feb);
days=(feb=='l')?29:28;
/*If test condition (feb=='l') is true, days will be equal to 29. */
/*If test condition (feb=='l') is false, days will be equal to 28. */
printf("Number of days in February = %d",days);
return 0;
}</code></pre>
<div style="line-height: 20px; margin-bottom: -10px; padding-left: 10px;">
<b>Output</b></div>
<pre style="background-color: #fdfdfd; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border: 1px solid rgb(42, 39, 94); font-family: 'Courier New', Courier, monospace; font-size: 13px; overflow: auto; padding-left: 20px;"><samp style="background-color: #f6f6f2; border: none; display: block; margin-left: -20px; padding: 10px 0px 10px 20px;">Enter l if the year is leap year otherwise enter n: l
Number of days in February = 29</samp></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<span style="background-color: transparent; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; line-height: 20px; text-align: left; word-spacing: 3px;">Other operators such as &(reference operator), *(dereference operator) and ->(member selection) operator will be discussed in</span><span style="background-color: transparent; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; line-height: 20px; text-align: left; word-spacing: 3px;"> </span><a href="https://www.megaproxy.com/go/http://www.programiz.com/c-programming/c-pointers" style="background-color: transparent; color: #000fff; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; line-height: 20px; text-align: left; text-decoration: none; word-spacing: 3px;">pointer chapter</a><span style="background-color: transparent; font-family: Tahoma, Geneva, sans-serif; font-size: 12px; line-height: 20px; text-align: left; word-spacing: 3px;">.</span><u><span style="font-family: Algerian; font-size: 36pt;"> </span></u></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<u><span style="font-family: Algerian; font-size: 36pt;">C
Operators<o:p></o:p></span></u></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/c-operators.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">what is operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/logical-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Logical operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/bitwise-operators.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Bitwise operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/arithmetic-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Arithmetic operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/realational-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Relational operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/sizeof-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Sizeof operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/increment-and-decrement-operators.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Increment or Decrement operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/comma-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Comma operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/11/type-cast-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Type cast operator</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><a href="http://cprogrammingcodes.blogspot.com/2011/09/ternary-operator.html"><span style="color: black; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; text-decoration: none; text-underline: none;">Ternary operators</span></a><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 10pt;"> </span></div>
<div class="MsoListParagraphCxSpFirst" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 18pt; text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 16.5pt;">v<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">C Operators<o:p></o:p></span></u></div>
<div class="MsoListParagraphCxSpLast" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 18pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">What is operators?</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In simple word operators are those which operator anything like as
data,maths,information etc i.e.. When we talking about C operators, i want to
say you that <span style="background: #EEEEEE;">C is very rich in operators</span>.
Operators tells to compiler that what do with data. There are mainly operators
in c as following:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Logical Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Bitwise Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Relational Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Assignment Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">5.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Sizeof Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">6.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment and Decrement operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">7.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Comma operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">8.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Type cast operator</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">9.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Conditional operators or ternary
operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Sometime operators are divided according numbers of operands. So there
are three types of operators as following : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 600px;">
<tbody>
<tr>
<td colspan="4" style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Operators</span><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;"></td>
<td style="background: #EEEEEE; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Unary<o:p></o:p></span></b></div>
</td>
<td style="background: #CCCCCC; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Binary<o:p></o:p></span></b></div>
</td>
<td style="background: #999999; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ternary<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">operand<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">single<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">third<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">works<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">right to left<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">left to right<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">left to right<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Example_1<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">++ , --<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+, -, *, /<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">? :<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Example_2<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">! , ~<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">&& , ||<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;"></td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">1.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Logical Operator<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">When we use if, for,
while then use one condition at once time what happen if we examine condition
more than one? In this case we use logical operators. So logical operators are
used to combine two or more condition.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">There are three types of logical operators as following:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Operator
symbol</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Name</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">&&</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical AND</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">||</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical OR</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">!</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical NOT</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
AND OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">&&</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The condition is true
if and only if both two expression are true otherwise condition false. The
truth table of logical AND operators end of this chapter.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
OR OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">||</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> The condition is
true if one of expression is true and condition will be false only if both
expression are false. See example of || operator at end of this chapter.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
NOT OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">!</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It reverse the
expression i.e if the expression evaluates to a non-zero value,
then applying ! operator to it results into a 0 and vice versa. The final
result (after applying ! ) 0 or 1 is considered to be false or true
respectively.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of above three
operators :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">//following
table con = condition.<o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 535px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">Con
2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1<span class="apple-converted-space"> </span><span style="color: magenta;">&&</span><span class="apple-converted-space"> </span>con 2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1<span class="apple-converted-space"> </span><span style="color: magenta;">||</span><span class="apple-converted-space"> </span>con 2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="color: magenta; font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">!</span></b><span class="apple-converted-space"><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";"> </span></b></span><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="background-position: initial initial; background-repeat: initial initial; color: magenta; font-family: inherit, serif;">!</span></b><span class="apple-converted-space"><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";"> </span></b></span><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Some numerical example
:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">if</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(10>5<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">&&</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">1000<2001)
// True</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">while</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(
; num>=1<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">||</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">num<=100
; ) // if num=1 True</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Now some discuss
of NOT operator when we write condition if( 1<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">!</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">=
0 ) what is mean it? It is mean "<span style="background: #F3F3F3;">one is
not equal to zero</span>", so is condition TRUE or False? It is true.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Let's understand following example :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">if</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(sex!='M')</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"Person
is Female"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">else</span><span style="color: blue; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"Person
is Male"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In above example
evaluate first printf if condition is false otherwise evaluate second printf.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="background-position: initial initial; background-repeat: initial initial; color: magenta; font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">!</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(x<22)
it is also we write (x>=22) // both are equal.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<h3 style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #161a4e; font-family: "Georgia","serif"; font-size: 16.5pt; font-weight: normal;">Write a C
Program by using Logical AND and OR Operator<o:p></o:p></span></h3>
<div align="center" class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VXxjNnoHFjp3Ru3kc1FipQn832bgvDvShToRmH_O-skGdMMuTYLEYgElzoN6TnQjokRf09YRzbjQKM4QJYS0eMIBeiOZMvHnx63hrvHjvcV8366xnGb0xlt_fdCtjkFrzmrtQ2ISxYg/s1600/logical-operators.jpg"><span style="color: #177d75; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shape id="Picture_x0020_1"
o:spid="_x0000_i1025" type="#_x0000_t75" alt="Description: Logical Operators"
href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VXxjNnoHFjp3Ru3kc1FipQn832bgvDvShToRmH_O-skGdMMuTYLEYgElzoN6TnQjokRf09YRzbjQKM4QJYS0eMIBeiOZMvHnx63hrvHjvcV8366xnGb0xlt_fdCtjkFrzmrtQ2ISxYg/s1600/logical-operators.jpg"
style='width:240pt;height:167.25pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:fill o:detectmouseclick="t"/>
<v:imagedata src="file:///C:\Users\hcl\AppData\Local\Temp\msohtmlclip1\01\clip_image002.jpg"
o:title="Logical Operators"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: Logical Operators" border="0" height="223" src="file:///C:/Users/hcl/AppData/Local/Temp/msohtmlclip1/01/clip_image002.jpg" v:shapes="Picture_x0020_1" width="320" /><!--[endif]--></span></a><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br />
<b><span style="background: #FAFBFE;">Statement of C Program: </span></b><span style="background: #FAFBFE;">This Program illustrates the logical ANDing and
ORing operations: </span></span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">#include<stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">#include<conio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">void main()<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int a , b , c;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: #FAFBFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">clrscr();</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">a = 4 , b = 3;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br />
<a href="" name="more"></a>c = a && b;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">b = a||b||c;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">a = a && b||c;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , a\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , b\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , c\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: blue; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #f3f3f3; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Output:<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">2.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Bitwise operators<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The smallest element in
memory on which are able to operate is called byte; and the programming
language are byte oriented. One of the c powerful features is a set of bit
manipulation operators. There are various bitwise operators in C as following
table; we learn all step by step :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Operators</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Name</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">&</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise AND</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">|</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise OR</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">^</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise XOR(exclusive OR)</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">>></span><span style="font-size: 12.0pt; line-height: 115%;"> </span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Left shift</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;"><<</span><span style="font-size: 12.0pt; line-height: 115%;"> </span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">right shift</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">~</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">One's complement</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">These operators can operate upon ints and chars but not on floats
and doubles. Bits are numbered from zero onwards, increasing from right to left
as following figure:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
7<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
6<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
5<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
4<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
3<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
2<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
0<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: #D9EAD3; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b>8 bit Character</b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
16<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
15<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
14<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
13<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
12<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
11<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
10<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
9<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
8<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
7<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
6<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
5<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
4<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
3<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
2<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
0<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: #D9EAD3; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b>16 bit Integer</b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #F3F3F3;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #F3F3F3; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
AND Operator (&)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The & operator operates on a pair of bits to yield a resultant
bit. The rules that decide the value of the resultant bit also called truth
table are shown below:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 200px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Bit x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Bit y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x & y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The best use of the AND operator is to check whether a particular
bit of an operand is ON or OFF. The meaning of ON means 1 and OFF means 0. The
following program puts this logic clear:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> /*Example of
bitwise AND operator*/</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">void</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">main()</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x=45;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y=37;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">z;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> clrscr();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> z = x & y;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"\nValue
of z=%d"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">,z);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Output of above
program:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Value of z=37</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In above program compiler first calculate the binary x and y which
is 111101 and 100101 respectly. After this its work on bitwise operator and
final result is 37 which binary code are 100101. The following table shown the
result : </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Values</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">binary code</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">x = 45</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">111101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">y = 37</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">100101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">z = x & y</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">100101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: white; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
OR ( | )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Truth table for bitwise
OR are as following :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">z = x | y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
XOR ( ^ )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It is also called
exclusive OR. If there are similar bit then its return 0 otherwise its return
1. Let watch truth table of x^y :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">z = x ^ y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of exclusive OR
:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 75</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = 64</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">z = x ^ y</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> x = 1 0 0 1 0 1 1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> y = 1 0 0 0 0 0 0<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9D2E9;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> z = 0 0 0 1 0 1 1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">hence, the value of
z=11</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background: white; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
right shift ( >> )</span></b><span style="color: #93c47d; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Right shift operator
shifts each bit in its left operand to the right. The number of places the bits
are shifted depends on the number following the operator i.e. its right
operand.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In simple meaning of
bitwise right shift as :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">
</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">insertion(zero) <span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">
deletation</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of right shift
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = x >> 2</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[x=15 before right
shifting ] 0000
0000 0000 1111<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x >> 2
during right shifting] <span class="apple-converted-space"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">0000
0000 0000 11</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">11</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x >> 2 after
right shifting] 0000 0000 0000 0011<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so now value of y=3.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Left
Shift operator ( << )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">This is similar to the
right shift operator, the only difference being that the bits are shifted to
the left, and for each shifted, a 0 is added to the right of the number.
Following structure shows it :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> </span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">deletatio
<span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">
insertion(zero) </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of right shift
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = x << 2</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[x=15 before right
shifting ]
0000 0000 0000 1111<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x << 2
during right shifting] <span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">00
0000 0000 1111</span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x << 2 after
right shifting] 0000 0000
0011 1100<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so now value of y=60.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">One's
complement ( ~ ) or Tilde</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It is reverse the bit
i.e. if bit is 0 then its return 1 and when bit is 1 it is return 0.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">example of tilde:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = ~ x</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(15)<sub>10</sub><span class="apple-converted-space"> </span>= 0000 0000 0000 1111</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = ~ x
1111 1111 1111 0000</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">hense, 65535 - 15 =
65520.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so the value of y is
65520. </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 24pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;">
</span></span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 24pt;">Arithmetic Operator<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 24pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Arithmetic operators
are special mathematical symbol which do all arithmetical calculation of the
programs. Following table display the operators and their works:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 3.75pt 3.75pt 3.75pt 3.75pt; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">Name of operators</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">Symbol</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">works</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">example</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Addition operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">+</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Add the numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">sum=7+8+1=16</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Subtract operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">-</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Subtraction of
numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">sub=100-50=50</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Multiply operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">*</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Multiple of
numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">muti=8*9=72</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Modulus operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">%</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Find the reminder
of numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">mod=45%40=5</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
Division operator<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red;">/</span><span style="color: red; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
Find the division of numbers<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
div=45/40=1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<br /></div>
<h3 style="margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-family: Verdana; mso-bidi-font-weight: normal; mso-fareast-font-family: Verdana;">4.</span><!--[endif]--><u><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-weight: normal;">Realational
Operator<o:p></o:p></span></u></h3>
<h3 style="margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-weight: normal;"> </span></u></h3>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">When we write
program, many time we requirement to comparison of two or more data, in that
case we uses relational operators. There are following relational operators as
following : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: #F3F3F3; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Operators
Name</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">> Greater than</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span class="apple-converted-space"><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">< Less than</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span class="apple-converted-space"><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">=</span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;"> </span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;"> Equals
to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">>= Greater
than equals to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">
<= Less than equals to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">!= Not equals
to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">The syntax of
relational expression as :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"><data
value 1>Relational operator<data value 2></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Example
:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">10<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;">>=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">5</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">-50<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;"><=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">0<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;">!=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">0</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">5.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> Sizeof operator<o:p></o:p></span></u></h3>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Sizeof operator
calculate the size of data i.e. how many bit a specific data having.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Syntax of sizeof
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">printf("<format
string>",sizeof<(data type variable)>);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> /*Program to
sizeof operator*/</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <b>#include<</b></span><b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">stdio.h</span></b><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span></b><b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">conio.h</span></b><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;"> void</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">main()</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> {</span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x=10;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> clrscr();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"\nSize
of x is %d"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">,sizeof(x));</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> getch();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <b>}</b></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Output of above
program :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Size of x is
2 </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">We read in<span class="apple-converted-space"> </span></span><a href="http://cprogrammingcodes.blogspot.com/2011/09/data-type-in-c.html"><span style="color: black; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">data
type chapter</span></a><span class="apple-converted-space"><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></b></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">that
an int allocate only 2 byte in memory,Hence, x = 2.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">6.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Increment and Decrement operators<o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Increment operators (</span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">++</span></b><b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">)</span></b><span style="color: #93c47d; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment operators are increase the value of subsequent. value may be
increase according to the<b> </b>programmer.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment operator are two types as follows :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Post increment</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Pre increment</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Decrement operators ( </span></b><b><span style="color: magenta; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">--</span></b><b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> )</span></b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">decrement operators decrease the value to one, two and so on.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">As like Increment operators, decrement operators are also two type as
: </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Post decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Pre decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Before we more discuss about increment and decrement operator, let
understand some expression; that's are using in all operators.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Now some issues of
pre and post increment and decrement, we will discuss after solve following
programming :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> x
= 5 </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> x = 5 </span> <span style="background: #D9EAD3;"> x = 5 </span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> x
= x+1 </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> ++x </span> <span style="background: #D9EAD3;"> x++ </span> </span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> </span><span style="background-color: #e06666; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">x = 6 </span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> </span><span style="background: #E06666;">x = 6</span></span><span style="background: #CFE2F3; color: #d9ead3; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background-position: initial initial; background-repeat: initial initial;"> </span><span style="background: #D9EAD3;"> </span><span style="background: #E06666;"> x=5 </span><span style="background: #D9EAD3;"> </span>
</span><span style="font-family: 'Courier New'; font-size: 10pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In above program u
notice that value of x increase to one in all three expression but after the
increasing one, the final value of x in not same, third box result is differ to
another two boxes. Now you know that c operators are mostly three types, ++ and
-- operators are Unary operators.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"><br />
Post increment or decrement are lowest precedence so it is solve at the end of
program. Hence above program in third box first value of x is print i.e. 5
after, it is increase.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"><br />
Unary operators are solve right to left.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.1</span></b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Solve the expression in C language
compiler ,assuming x,z are integer variables:</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">z
= x++ + x++</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">where
x=7</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #38761d; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans.</span></b><span style="color: #38761d; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">stepwise evaluation of this expression is shown below : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z </span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">=</span><span style="font-family: 'Courier New'; font-size: 18pt;"> x++ </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x++ </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//post increment of x=2</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//++x increase the value of x one so x=8 </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*Now all pre and post increment/decrement are solved so we
write the the expression in normal mathematical expression*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//put the current value of x i.e. 8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+ </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">z = 24</span></span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">syntax</span><span style="font-family: 'Courier New'; font-size: 12pt;"> </span><span style="color: #bf9000; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="font-family: 'Courier New'; font-size: 12pt;"> x=current value-post increment/decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">so x = 8 + 2</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">x = 10</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.2</span></b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Solve the following expression
: </span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">z
= ++x + y-- - ++y - x-- - x-- - ++y - x--</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">where
x = 7</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
y = -3</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans.</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><span style="font-family: 'Courier New'; font-size: 10pt;"> </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 10pt;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">y-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x--</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/* post decrement of x=3 and</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> post decrement of y=1 */</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= ++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /* its unary operator so we solve it from</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> right to left*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now y=-3+1=-2</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now y=-2+1=-1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now x=7+1=8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*now all increment and decrement operators </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> all solved so we put the current value of x </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> and y.*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 16 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">z= -15</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">x=8-3=5 </span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">y=-1-1=-2</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Related some
increment or decrement operators exercise:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.3 </span></b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> solve the following equations:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x-- </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
<br />
where x = 7 and<br />
y = 9<br />
<br />
<b><i>hint:</i></b>(For your cross-checking, answer is x=7, y=9 and z=18).<br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.4</span></b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> solve
the following equations:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">*</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> y++<b> </b></span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y
</span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">%</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> x++<br />
<br />
where x = 5 and<br />
y = 2<br />
<br />
<b><i>hint:</i></b>(For your cross-checking, answer is x=8, y=2 and z=0).<br />
<br />
--------------------------------------------------------------------------------<br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.3</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> answer
with explanation :<br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x-- </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
<br />
<br />
where x = 7 and<br />
y = 9<br />
<br />
</span><b><span style="color: #38761d; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
post decrement of x = 1<br />
post increment of x = 1<br />
<br />
z = x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
z = x <b>+</b> ++y - x + y </span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//
now y = 9-1 = 8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
z = x + y - x + y </span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//
now y = 8+1 = 9</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
</span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">// now put the value of x and y</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
z = 7 + 9 - 7 + 9<br />
z = 9 + 9<br />
z = 18<br />
<br />
Hence, our final answer will be:<br />
<br />
<b>x</b> = 7 - 1 + 1 = <b>7</b><br />
<b>y</b> = <b>9</b><br />
<b>z</b> = <b>18</b><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">7.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Comma operator<o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Comma operator ( </span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span></b><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Evaluate of comma operator- <span style="background: #EEEEEE;">Left
to right</span>.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">Uses of comma operator</span><span style="font-family: 'Courier New'; font-size: 18pt;"> as following :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples declaration</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples initialization</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples variation</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples statement </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">Example</span><span style="font-family: 'Courier New'; font-size: 18pt;"> of comma operator</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">int x=0</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">y=1</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">z=2;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">for(x=0 </span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;"> y=1</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;"> z=2 ; condition1 </span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">condition2 ;increment/decrement)</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">8.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Type-cast operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">The type cast operator is very important in C. Cast operator uses in
convert one data type to another data types. Type casting may be two types:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Implicit type cast</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Explicit type cast</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><u><span style="font-family: 'Courier New'; font-size: 18pt;">Implicit type cast</span></u></b><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In C, implicit type cast are automatically handled by compiler i.e. when
two or more data types are getting execution then the final data-type will be
that data type as it is declared, i.e it is not depend on conversion of data
type.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">It is clear understand by example as:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> i,j;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> f;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> d;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> i=d*f+f*j;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">what you think, <i>what
will be data type of i</i>?</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">it is double!! No, right answer is </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">. You see in program that </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> has high priority or
precedence of </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> and </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">, so result of data type will be comes in </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> but when result is assign in i,
it will be convert in </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> because i is declared as </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">. It is <i>implicit type casting</i>.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><u><span style="font-family: 'Courier New'; font-size: 18pt;">Explicit type cast</span></u></b><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">An explicit type cast is a cast that we should specify invoke with
either the cast. The compiler does not automatically invoke to resolve the data
type conversion.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Let's understand explicit with example:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #999999; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/*A student marks of three subject as m1,m2,m3 and calculate
percentage(per)*/</span><span style="color: #999999; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">#include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">#include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">{</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">}</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><u><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">output</span></u></b><b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:-</span></b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">0.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Surprise, let's
explain to me, it is a common type cast mistake, look at</span><span style="color: #444444; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>per=total/300*100;</u></span><span style="font-family: 'Courier New'; font-size: 18pt;"> statement. In this statement
first of all total/300 will be solve so total(240) and 300 are </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> hence 240/300 will be produce a </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> value so result is 0.000000. These mistake
may me solved by three ways as:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">1. We mention <u>type
cast</u> in above program as: </span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="color: #999999; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*demonstration
of type casting*/</span><span style="color: #666666; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=(</span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;">)total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:-</span></b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">2. We used total
as </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> variable.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">3. we convert </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> to </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> to the 300 by adding decimal portion.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300.0*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">9.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Ternary operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Main features of <span style="background: #CCCCCC;">ternary operators</span> as
follows : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">There are three operand.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">It works from left to right</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Example of ternary operator is conditional operator. Symbol of
conditional operator : <span style="background: #EEEEEE;">condition </span></span><span style="background: #EEEEEE; color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">?</span><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> True_parts </span><span style="background: #EEEEEE; color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> False_parts </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-58739849776343730072013-08-08T01:37:00.003-07:002013-08-08T01:37:30.444-07:00Most Useful wbsite for ALL ASP.NET CODE<div dir="ltr" style="text-align: left;" trbidi="on">
Most Useful wbsite for ALL ASP.NET CODE<br />
<br />
<a href="http://www.webcodeexpert.com/2013/07/get-age-in-yearsmonthsdayshours-and.html">http://www.webcodeexpert.com/2013/07/get-age-in-yearsmonthsdayshours-and.html</a></div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-88297265329293857292013-08-07T23:17:00.002-07:002013-08-07T23:17:18.674-07:00Latest Proxy Sites<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 class="post-title entry-title" style="background-color: white; color: #4a4a4a; font-family: Arial, Helvetica, sans-serif; font-size: 24px; line-height: 24px; margin: 0px 0px 8px; padding: 0px;">
<a href="http://vasuviroja.blogspot.in/p/latest-proxy-sites_03.html" style="color: #4a4a4a; display: block; outline: none; text-decoration: none;">Latest Proxy Sites</a></h3>
<div class="post-header-line-1" style="background-color: white; color: #555555; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; font-size: 12px;">
</div>
<div class="postdate" style="background-color: white; color: #3e3c3c; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-style: italic;">
<br /></div>
<div class="post-body entry-content" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin: 0px 0px 0.75em; padding-top: 8px; text-align: justify;">
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
>> Here you can find latest proxy site list. This list will update regularly. If any site is not working then mention it in comment.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
>> All above proxy sites are best proxy sites and selected by admin from a large proxy sites list. One good thing is that all unblocked proxy sites mentioned below are free proxy sites. All proxy sites published in trickszone are new, fresh and anonymous proxy sites.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
>> You can use these proxy sites in your schools and offices to unblock blocked websites like facebook, youtybe, twitter, gmail etc.</div>
<br /><br /><h4>
<ul>
<li><span style="font-weight: normal;"><a href="http://gofavorite.info/" style="color: #0e95a5; outline: none;" target="_blank">http://gofavorite.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://proxylive.info/" style="color: #0e95a5; outline: none;" target="_blank">http://proxylive.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://pabulumia.com/" style="color: #0e95a5; outline: none;" target="_blank">http://pabulumia.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://dataagent.info/" style="color: #0e95a5; outline: none;" target="_blank">http://dataagent.info</a></span></li>
<li><a href="http://mailprotected.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://mailprotected.info</a></li>
<li><span style="font-weight: normal;"><a href="http://vpnsmart.info/" style="color: #0e95a5; outline: none;" target="_blank">http://vpnsmart.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://findthink.info/" style="color: #0e95a5; outline: none;" target="_blank">http://findthink.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://pikatchoproxy.org/" style="color: #0e95a5; outline: none;" target="_blank">http://pikatchoproxy.org</a></span></li>
<li><span style="font-weight: normal;"><a href="http://fastproxyfree.org/" style="color: #0e95a5; outline: none;" target="_blank">http://fastproxyfree.org</a></span></li>
<li><a href="http://circumvent.it/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://circumvent.it</a></li>
<li><span style="font-weight: normal;"><a href="http://localproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://localproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://proxybrowse.net/" style="color: #0e95a5; outline: none;" target="_blank">http://proxybrowse.net</a></span></li>
<li><span style="font-weight: normal;"><a href="http://travelunresticted.info/" style="color: #0e95a5; outline: none;" target="_blank">http://travelunresticted.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://surfonnow.com/" style="color: #0e95a5; outline: none;" target="_blank">http://surfonnow.com</a></span></li>
<li><a href="http://eurosearch.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://eurosearch.info</a></li>
<li><span style="font-weight: normal;"><a href="http://nameapps.info/" style="color: #0e95a5; outline: none;" target="_blank">http://nameapps.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://dzairsurf.com/" style="color: #0e95a5; outline: none;" target="_blank">http://dzairsurf.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://login999.com/" style="color: #0e95a5; outline: none;" target="_blank">http://login999.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://littlebopeepprox.info/" style="color: #0e95a5; outline: none;" target="_blank">http://littlebopeepprox.info</a></span></li>
<li><a href="http://serversproxy.net/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://serversproxy.net</a></li>
<li><span style="font-weight: normal;"><a href="http://freeproxyavoidance.com/" style="color: #0e95a5; outline: none;" target="_blank">http://freeproxyavoidance.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://besthummer.com/" style="color: #0e95a5; outline: none;" target="_blank">http://besthummer.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://nameofproxy.com/" style="color: #0e95a5; outline: none;" target="_blank">http://nameofproxy.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://fastxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://fastxy.info</a></span></li>
<li><a href="http://privacyfree.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://privacyfree.info</a></li>
<li><span style="font-weight: normal;"><a href="http://proxmyfox.info/" style="color: #0e95a5; outline: none;" target="_blank">http://proxmyfox.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://searchhidden.info/" style="color: #0e95a5; outline: none;" target="_blank">http://searchhidden.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://vpnnet.info/" style="color: #0e95a5; outline: none;" target="_blank">http://vpnnet.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://pokimon.net/" style="color: #0e95a5; outline: none;" target="_blank">http://pokimon.net</a></span></li>
<li><a href="http://cloudcard.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://cloudcard.info</a></li>
<li><span style="font-weight: normal;"><a href="http://2-proxy.com/" style="color: #0e95a5; outline: none;" target="_blank">http://2-proxy.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://thedogtrainings.com/" style="color: #0e95a5; outline: none;" target="_blank">http://thedogtrainings.com</a></span></li>
<li><a href="http://pushwin.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://pushwin.info</a></li>
<li><span style="font-weight: normal;"><a href="http://nisfelmojtama3.com/" style="color: #0e95a5; outline: none;" target="_blank">http://nisfelmojtama3.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://p14523.info/" style="color: #0e95a5; outline: none;" target="_blank">http://p14523.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://youngultra.info/" style="color: #0e95a5; outline: none;" target="_blank">http://youngultra.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://tested-speed.com/" style="color: #0e95a5; outline: none;" target="_blank">http://tested-speed.com</a></span></li>
<li><a href="http://wintraffic.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://wintraffic.info</a></li>
<li><span style="font-weight: normal;"><a href="http://onproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://onproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://yumyumtumsproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://yumyumtumsproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://plzunblock.com/" style="color: #0e95a5; outline: none;" target="_blank">http://plzunblock.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://appproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://appproxy.info</a></span></li>
<li><a href="http://socialtheacher.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://socialtheacher.info</a></li>
<li><span style="font-weight: normal;"><a href="http://dimahna.co/" style="color: #0e95a5; outline: none;" target="_blank">http://dimahna.co</a></span></li>
<li><span style="font-weight: normal;"><a href="http://autofirewall.info/" style="color: #0e95a5; outline: none;" target="_blank">http://autofirewall.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://yickstickproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://yickstickproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://appair.info/" style="color: #0e95a5; outline: none;" target="_blank">http://appair.info</a></span></li>
<li><a href="http://mindsecure.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://mindsecure.info</a></li>
<li><span style="font-weight: normal;"><a href="http://zerosense.info/" style="color: #0e95a5; outline: none;" target="_blank">http://zerosense.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://poproxy.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://poproxy.eu</a></span></li>
<li><span style="font-weight: normal;"><a href="http://pikaproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://pikaproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://popproxy.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://popproxy.eu</a></span></li>
<li><a href="http://lineproxies.com/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://lineproxies.com</a></li>
<li><span style="font-weight: normal;"><a href="http://boostproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://boostproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://sanouf.com/" style="color: #0e95a5; outline: none;" target="_blank">http://sanouf.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://riskweb.info/" style="color: #0e95a5; outline: none;" target="_blank">http://riskweb.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://usetheproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://usetheproxy.info</a></span></li>
<li><a href="http://proxpax.com/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://proxpax.com</a></li>
<li><span style="font-weight: normal;"><a href="http://secretshield.info/" style="color: #0e95a5; outline: none;" target="_blank">http://secretshield.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://yickstick.info/" style="color: #0e95a5; outline: none;" target="_blank">http://yickstick.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://usetheprox.info/" style="color: #0e95a5; outline: none;" target="_blank">http://usetheprox.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://qqproxy.com/" style="color: #0e95a5; outline: none;" target="_blank">http://qqproxy.com</a></span></li>
<li><a href="http://proxygo.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://proxygo.info</a></li>
<li><span style="font-weight: normal;"><a href="http://how-proxy.com/" style="color: #0e95a5; outline: none;" target="_blank">http://how-proxy.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://tookproxy.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://tookproxy.eu</a></span></li>
<li><span style="font-weight: normal;"><a href="http://grandportal.tk/" style="color: #0e95a5; outline: none;" target="_blank">http://grandportal.tk</a></span></li>
<li><span style="font-weight: normal;"><a href="http://hiddenmax.info/" style="color: #0e95a5; outline: none;" target="_blank">http://hiddenmax.info</a></span></li>
<li><a href="http://vebrowser.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://vebrowser.info</a></li>
<li><a href="http://arabgo.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://arabgo.info</a></li>
<li><span style="font-weight: normal;"><a href="http://youtubeproxy.co/" style="color: #0e95a5; outline: none;" target="_blank">http://youtubeproxy.co</a></span></li>
<li><span style="font-weight: normal;"><a href="http://stop-blocking.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://stop-blocking.eu</a></span></li>
<li><span style="font-weight: normal;"><a href="http://de-today.org/" style="color: #0e95a5; outline: none;" target="_blank">http://de-today.org</a></span></li>
<li><a href="http://speedproxy.eu/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://speedproxy.eu</a></li>
<li><span style="font-weight: normal;"><a href="http://todayhug.com/" style="color: #0e95a5; outline: none;" target="_blank">http://todayhug.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://unblockersurf.com/" style="color: #0e95a5; outline: none;" target="_blank">http://unblockersurf.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://vpncom.info/" style="color: #0e95a5; outline: none;" target="_blank">http://vpncom.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://toolproxy.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://toolproxy.eu</a></span></li>
<li><a href="http://fastedproxy.eu/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://fastedproxy.eu</a></li>
<li><span style="font-weight: normal;"><a href="http://androidbase.info/" style="color: #0e95a5; outline: none;" target="_blank">http://androidbase.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://spaceserver.info/" style="color: #0e95a5; outline: none;" target="_blank">http://spaceserver.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://windowsproxy.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://windowsproxy.eu</a></span></li>
<li><span style="font-weight: normal;"><a href="http://clubschool.info/" style="color: #0e95a5; outline: none;" target="_blank">http://clubschool.info</a></span></li>
<li><a href="http://likeproxy.com/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://likeproxy.com</a></li>
<li><a href="http://ggproxy.eu/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://ggproxy.eu</a></li>
<li><span style="font-weight: normal;"><a href="http://weburnanyfridge.com/" style="color: #0e95a5; outline: none;" target="_blank">http://weburnanyfridge.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://24plan.info/" style="color: #0e95a5; outline: none;" target="_blank">http://24plan.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://fastbase.info/" style="color: #0e95a5; outline: none;" target="_blank">http://fastbase.info</a></span></li>
<li><a href="http://procilead.com/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://procilead.com</a></li>
<li><span style="font-weight: normal;"><a href="http://ipanonyme.com/" style="color: #0e95a5; outline: none;" target="_blank">http://ipanonyme.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://cooldigital.info/" style="color: #0e95a5; outline: none;" target="_blank">http://cooldigital.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://hiddenaction.info/" style="color: #0e95a5; outline: none;" target="_blank">http://hiddenaction.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://surpriseproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://surpriseproxy.info</a></span></li>
<li><a href="http://leavenotraces.com/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://leavenotraces.com</a></li>
<li><span style="font-weight: normal;"><a href="http://proxynn.com/" style="color: #0e95a5; outline: none;" target="_blank">http://proxynn.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://hidemyflag.com/" style="color: #0e95a5; outline: none;" target="_blank">http://hidemyflag.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://gagsface.com/" style="color: #0e95a5; outline: none;" target="_blank">http://gagsface.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://skycommand.tk/" style="color: #0e95a5; outline: none;" target="_blank">http://skycommand.tk</a></span></li>
<li><a href="http://digitalmicro.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://digitalmicro.info</a></li>
<li><span style="font-weight: normal;"><a href="http://proxy-007.com/" style="color: #0e95a5; outline: none;" target="_blank">http://proxy-007.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://chromepixel.info/" style="color: #0e95a5; outline: none;" target="_blank">http://chromepixel.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://freedomcore.info/" style="color: #0e95a5; outline: none;" target="_blank">http://freedomcore.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://hideme-please.com/" style="color: #0e95a5; outline: none;" target="_blank">http://hideme-please.com</a></span></li>
<li><a href="http://activedigital.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://activedigital.info</a></li>
<li><span style="font-weight: normal;"><a href="http://cybercommand.tk/" style="color: #0e95a5; outline: none;" target="_blank">http://cybercommand.tk</a></span></li>
<li><span style="font-weight: normal;"><a href="http://usaproxy.eu/" style="color: #0e95a5; outline: none;" target="_blank">http://usaproxy.eu</a></span></li>
<li><span style="font-weight: normal;"><a href="http://studysky.info/" style="color: #0e95a5; outline: none;" target="_blank">http://studysky.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://yoursexyproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://yoursexyproxy.info</a></span></li>
<li><a href="http://whiteproxy.eu/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://whiteproxy.eu</a></li>
<li><span style="font-weight: normal;"><a href="http://androidbay.info/" style="color: #0e95a5; outline: none;" target="_blank">http://androidbay.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://proxthesite.info/" style="color: #0e95a5; outline: none;" target="_blank">http://proxthesite.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://fasterproxy.org/" style="color: #0e95a5; outline: none;" target="_blank">http://fasterproxy.org</a></span></li>
<li><span style="font-weight: normal;"><a href="http://createvpn.info/" style="color: #0e95a5; outline: none;" target="_blank">http://createvpn.info</a></span></li>
<li><a href="http://geekone.info/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://geekone.info</a></li>
<li><span style="font-weight: normal;"><a href="http://proxyinu.info/" style="color: #0e95a5; outline: none;" target="_blank">http://proxyinu.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://fasterproxy.info/" style="color: #0e95a5; outline: none;" target="_blank">http://fasterproxy.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://feckschool.com/" style="color: #0e95a5; outline: none;" target="_blank">http://feckschool.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://24vpn.info/" style="color: #0e95a5; outline: none;" target="_blank">http://24vpn.info</a></span></li>
<li><a href="http://leaveproxy.com/" style="color: #0e95a5; font-weight: normal; outline: none;" target="_blank">http://leaveproxy.com</a></li>
<li><span style="font-weight: normal;"><a href="http://androidshell.info/" style="color: #0e95a5; outline: none;">http://androidshell.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://anonymousled.info/" style="color: #0e95a5; outline: none;">http://anonymousled.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://deabc.info/" style="color: #0e95a5; outline: none;">http://deabc.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://webbag.info/" style="color: #0e95a5; outline: none;">http://webbag.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://unblockedfirewall.com/" style="color: #0e95a5; outline: none;">http://unblockedfirewall.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://tubed.info/" style="color: #0e95a5; outline: none;" target="_blank">http://tubed.info</a></span></li>
<li><span style="font-weight: normal;"><a href="http://proxies-list.com/" style="color: #0e95a5; outline: none;" target="_blank">http://proxies-list.com</a></span></li>
<li><span style="font-weight: normal;"><a href="http://2proxy.biz/" style="color: #0e95a5; outline: none;" target="_blank">http://2proxy.biz</a></span></li>
</ul>
</h4>
</div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-19830758547863800142013-08-07T22:41:00.002-07:002013-08-07T22:41:30.782-07:00How To Open Blocked Websites in School/College/Office<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="post-title entry-title" style="background-color: white; border-bottom-color: rgb(0, 0, 0); border-bottom-style: dotted; border-bottom-width: 0px; border-top-color: rgb(0, 0, 0); border-top-style: dotted; border-top-width: 0px; color: #1c3c6f; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 26px; font-weight: normal; line-height: 1.4em; margin: 0.25em 0px 0px; padding: 0px 0px 4px; position: relative;">
<a href="http://modifymypc.blogspot.in/2013/02/how-to-open-blocked-websites-in.html" style="color: #4d469c; text-decoration: none;">How To Open Blocked Websites in School/College/Office</a></h1>
<div>
<br /></div>
<div>
<br /></div>
<div>
<span style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;">Many websites like Facebook, YouTube etc may be blocked in your college or office. Its quite usual. But it in many case it is essential to open these websites even for our studies. Then any method to open these blocked websites?? Here it is, tricks to open blocked sites and surf the the web anonymously. I have explained three methods below. One is using IP address, with the help of Proxy Servers and finally web2main. Try it and give me your feedback please..</span><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><a href="" name="more" style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;"></a><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><h2 style="background-color: white; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; margin: 0px -15px; padding: 0.6em 15px 0.5em; position: relative;">
<span style="color: purple;">Open and Surf Blocked Websites Anonymously</span></h2>
<br style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;" /><h2 style="background-color: white; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; margin: 0px -15px; padding: 0.6em 15px 0.5em; position: relative;">
<b>Method 1: </b><span style="color: purple;">By Finding Website's IP Address</span></h2>
<div style="background-color: white; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px; padding-top: 8px;">
1) Go to <b>Start > Run</b>.<br />2) In the box appears type “<b>cmd</b>”<br /><br />3) A black box appears. Paste the following in to it.<i><b> </b></i><br /><i><b> ping www.google.com</b></i><br /> and press enter (change www.google.com to any site you want).<br />4) An IP address will be shown in brackets <b>[]</b>. Copy it.<br />5) Open your <b>browser</b> and <b>paste the IP</b> address in address bar and press enter.<br /> done</div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;">
<br /></div>
<h2 style="background-color: white; border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14px; margin: 0px -15px; padding: 0.6em 15px 0.5em; position: relative;">
<b>Method 2: </b><b><span style="color: purple;">By Proxy Servers</span></b></h2>
<div style="background-color: white; border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px; padding-top: 8px;">
<div>
Proxy server or proxy sites are websites which allow you to browse a site in your browser without monitoring. Because the ip address will be different. Even if you open a site like Facebook through any of the proxy site they cant see "http://www.facebook.com" in the address bar. Only the proxy site's URL. </div>
<div>
</div>
</div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;">
<b><br /></b></div>
<div style="background-color: white; color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 17px; line-height: 23px;">
<h3 style="margin: 0px; position: relative;">
<b>List of Top 10 Proxy sites</b></h3>
<br /><ol>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.free-web-proxy.de/" style="color: #4d469c; text-decoration: none;">www.Free-web-proxy.de</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.free-web-proxy.de/" style="color: #4d469c; text-decoration: none;">www.aniscartujo.com/webproxy/</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.anonymouse.org/" style="color: #4d469c; text-decoration: none;">www.Anonymouse.org</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.hidemyass.com/" style="color: #4d469c; text-decoration: none;">www.Hidemyass.com</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.daveproxy.co.uk/" style="color: #4d469c; text-decoration: none;">www.Daveproxy.co.uk</a> </li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.dumbdream.com/" style="color: #4d469c; text-decoration: none;">www.Dumbdream.com</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.kproxy.com/" style="color: #4d469c; text-decoration: none;">www.Kproxy.com</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.polysolve.com/" style="color: #4d469c; text-decoration: none;">www.Polysolve.com</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.megaproxy.com/freesurf" style="color: #4d469c; text-decoration: none;">www.Megaproxy.com/freesurf</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;"><a href="http://www.anonproxy.eu/" style="color: #4d469c; text-decoration: none;">www.Anonproxy.eu</a></li>
</ol>
<h2 style="border-bottom-color: transparent; border-bottom-style: solid; border-bottom-width: 1px; font-size: 14px; line-height: normal; margin: 0px -15px; padding: 0.6em 15px 0.5em; position: relative;">
Method 3:<span style="color: purple;"> Send Webpages to Email</span></h2>
<div style="border-top-color: rgb(238, 238, 238); border-top-style: solid; border-top-width: 1px; padding-top: 8px;">
Sounds cools, isn't it? Yes <a href="http://www.web2mail.com/" rel="nofollow" style="color: #4d469c; text-decoration: none;"><b>web2mail</b></a> allows you to receive websites as email. Which means simply give the address to <a href="http://www.web2mail.com/" style="color: #4d469c; text-decoration: none;">web2mail</a>, then will send you the site (you have to sign up first). Just open the mail, you can see the webpage. Try Google.com so that you can browse entire web from email itself. Another method to open blocked websites.</div>
<div>
<br /></div>
<div>
Please write your feedback and help us...</div>
</div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-83261024299614708902013-08-07T01:20:00.003-07:002013-08-07T01:20:50.274-07:00Operator in C <div dir="ltr" style="text-align: left;" trbidi="on">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-font-kerning: 18.0pt;">C
Programming Operators<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operators are the symbol which
operates on value or a variable. For example: <i>+</i> is a operator to perform
addition.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">C programming language has wide
range of operators to perform various operations. For better understanding of operators,
these operators can be classified as:<o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="mso-cellspacing: .7pt; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operators
in C programming<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#arithmetic"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Arithmetic Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#increment"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Increment and Decrement Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#assignment"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Assignment Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#relational"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Relational Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#logical"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Logical Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#conditional"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Conditional Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#bitwise"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Bitwise Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-operators#other"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Special Operators</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoListParagraph" style="text-indent: -18pt;">
<a href="" name="arithmetic"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 22.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">1.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;"> </span></span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 22.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Arithmetic Operators<o:p></o:p></span></u></b></div>
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="mso-cellspacing: .7pt; mso-yfti-tbllook: 1184; width: 500px;">
<thead>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operator<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Meaning
of Operator<o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">+<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">addition or unary plus<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">-<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">subtraction or unary minus<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">*<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">multiplication<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">/<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">division<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">%<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">remainder after division( modulo
division)<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Example of working of arithmetic
operators<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">/* Program to demonstrate the working of arithmetic
operators in C. */<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">#include <stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">int main(){<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> int a=9,b=4,c;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> c=a+b;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("a+b=%d\n",c);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> c=a-b;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("a-b=%d\n",c);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> c=a*b;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("a*b=%d\n",c);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> c=a/b;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("a/b=%d\n",c);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> c=a%b;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("Remainder when a divided by b=%d\n",c);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> return 0;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a+b=13<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a-b=5<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a*b=36<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a/b=2<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Remainder when a divided by b=1<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Explanation</span></b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Here, the operators +, - and *
performed normally as you expected. In normal calculation, </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">9/4</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> equals to 2.25. But, the output is 2 in this program. It is
because, a and b are both integers. So, the output is also integer and the
compiler neglects the term after decimal point and shows answer 2 instead of
2.25. And, finally </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">a%b</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is 1,i.e. ,when </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">a=9</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is divided by </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">b=4</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">,
remainder is 1.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Suppose a=5.0, b=2.0, c=5 and d=2<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">In C programming,<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a/b=2.5 <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a/d=2.5<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">c/b=2.5 <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">c/d=2<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Note:</span></b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> % operator can only be used with
integers.<o:p></o:p></span></div>
<div class="MsoListParagraph" style="text-indent: -18pt;">
<a href="" name="increment"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">2.</span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Increment and decrement operators<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">In C, </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">++</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> and </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">--</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
are called increment and decrement operators respectively. Both of these
operators are unary operators, i.e, used on single operand. </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">++</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> adds 1 to operand and </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">--</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> subtracts 1 to operand respectively. For example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Let a=5 and b=10<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a++; //a becomes 6<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a--; //a becomes 5<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">++a; //a becomes 6<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">--a; //a becomes 5 <o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US"><a href="http://www.programiz.com/article/increment-decrement-operator-difference-prefix-postfix" title="increment and decrement operator detail"><b><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Difference between ++ and -- operator as postfix and prefix</span></b></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">When </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">i++</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is used as prefix(like: </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">++var</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">), </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">++var</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">
will increment the value of <i>var</i> and then return it but, if </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">++</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is used as postfix(like: var++), operator will return the
value of operand first and then only increment it. This can be demonstrated by
an example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">#include <stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">int main(){<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> int c=2,d=2;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("%d\n",c++); //this statement displays 2 then, only c
incremented by 1 to 3.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
printf("%d",++c);
//this statement increments 1 to c then, only c is displayed. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> return 0;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Output</span></b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">2<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">4<o:p></o:p></span></div>
<div class="MsoNormal">
<a href="" name="assignment"></a><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 20.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">3.Assignment Operators<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">The most common assignment operator
is </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">=</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">. This operator assigns the value in
right side to the left side. For example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">var=5 //5 is assigned
to var<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a=c; //value of c is
assigned to a<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">5=c; // Error! 5 is
a constant.<o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="mso-cellspacing: .7pt; mso-yfti-tbllook: 1184; width: 500px;">
<thead>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operator<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Example<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Same
as<o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=b<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=b<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">+=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a+=b<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=a+b<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">-=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a-=b<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=a-b<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">*=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a*=b<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=a*b<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">/=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a/=b<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=a/b<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">%=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a%=b<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">a=a%b<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoListParagraph" style="margin-left: 54pt; text-indent: -18pt;">
<a href="" name="relational"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 22.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">4.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;"> </span></span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 22.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Relational Operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Relational operators checks
relationship between two operands. If the relation is true, it returns value 1
and if the relation is false, it returns value 0. For example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">a>b<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Here, </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is a relational operator. If <i>a</i> is greater than <i>b</i>,
<i>a>b</i> returns 1 if not then, it returns 0.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Relational operators are used in
decision making and loops in C programming.<o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="mso-cellspacing: .7pt; mso-yfti-tbllook: 1184; width: 500px;">
<thead>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operator<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Meaning
of Operator<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Example<o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">==<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Equal to<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">5==3 returns false (0)<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">><o:p> </o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Greater than<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">5>3 returns true (1)<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><<o:p> </o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Less than<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">5<3 returns false (0)<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">!=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Not equal to<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">5!=3 returns true(1)<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">>=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Greater than or equal to<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">5>=3 returns true (1)<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><=<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Less than or equal to<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">5<=3 return false (0)<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoListParagraph" style="margin-left: 54pt; text-indent: -18pt;">
<a href="" name="logical"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">5.</span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Logical Operators<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Logical operators are used to
combine expressions containing relation operators. In C, there are 3 logical
operators:<o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="mso-cellspacing: .7pt; mso-yfti-tbllook: 1184; width: 500px;">
<thead>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operator<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Meaning
of Operator<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Example<o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">&&<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Logial AND <o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">If c=5 and d=2 then,((c==5)
&& (d>5)) returns false.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">||<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Logical OR<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">If c=5 and d=2
then, ((c==5) || (d>5)) returns true.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">!<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Logical NOT<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">If c=5 then, !(c==5) returns
false.<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Explanation</span></b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">For expression, <i>((c==5)
&& (d>5))</i> to be true, both <i>c==5</i> and <i>d>5</i> should
be true but, (d>5) is false in the given example. So, the expression is
false. For expression </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">((c==5) || (d>5))</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> to be true, either the expression should be true. Since, </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">(c==5)</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is true. So, the expression is true. Since, expression
</span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">(c==5)</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is true, </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">!(c==5)</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is false.<o:p></o:p></span></div>
<div class="MsoListParagraph" style="margin-left: 54pt; text-indent: -18pt;">
<a href="" name="conditional"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">6.</span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 24.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Conditional Operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Conditional operator takes three
operands and consists of two symbols ? and : . Conditional operators are used
for decision making in C. For example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">c=(c>0)?10:-10;<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">If <i>c</i> is greater than 0, value
of <i>c</i> will be 10 but, if <i>c</i> is less than 0, value of <i>c</i> will
be -10.<o:p></o:p></span></div>
<div class="MsoListParagraph" style="margin-left: 54pt; text-indent: -18pt;">
<a href="" name="bitwise"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 22.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">7.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;"> </span></span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 22.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Bitwise Operators<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">A bitwise operator works on each bit
of data. Bitwise operators are used in bit level programming.<o:p></o:p></span></div>
<table border="1" cellpadding="0" cellspacing="1" class="MsoNormalTable" style="mso-cellspacing: .7pt; mso-yfti-tbllook: 1184; width: 500px;">
<thead>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Operators<o:p></o:p></span></b></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Meaning
of operators<o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">&<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Bitwise AND<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">|<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Bitwise OR<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">^<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Bitwise exclusive OR<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">~<o:p></o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Bitwise complement<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><<<o:p> </o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Shift left<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">>><o:p> </o:p></span></div>
</td>
<td style="padding: .75pt .75pt .75pt .75pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Shift right<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Bitwise operator is advance topic in
programming . Learn more about </span><span lang="EN-US"><a href="http://www.programiz.com/article/bitwise-operator-c-programming" title="Bitwise operators"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">bitwise operator in C
programming</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">.<o:p></o:p></span></div>
<div class="MsoListParagraph" style="margin-left: 54pt; text-indent: -18pt;">
<a href="" name="other"></a><!--[if !supportLists]--><b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 26.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">8.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;">
</span></span></b><!--[endif]--><b><u><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 26.0pt; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Other Operators<o:p></o:p></span></u></b></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Comma
Operator<o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Comma operators are used to link
related expressions together. For example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">int a,c=5,d;<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">The
sizeof operator<o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">It is a unary operator which is used
in finding the size of data type, constant, arrays, structure etc. For example:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">#include <stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">int main(){<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> int a;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> float b;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> double c;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> char d;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> printf("Size
of int=%d bytes\n",sizeof(a));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> printf("Size
of float=%d bytes\n",sizeof(b));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> printf("Size
of double=%d bytes\n",sizeof(c));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> printf("Size
of char=%d byte\n",sizeof(d));<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> return 0;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Output</span></b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Size of int=4 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Size of float=4 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Size of double=8 bytes<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Size of char=1 byte<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Conditional
operators (?:)<o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Conditional operators are used in
decision making in C programming, i.e, executes different statements according
to test condition whether it is either true or false.<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Syntax
of conditional operators<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">conditional_expression?expression1:expression2<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">If the test condition is true, </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">expression1</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is returned and if false </span><span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-bidi-font-size: 11.0pt; mso-fareast-font-family: "Times New Roman";">expression2</span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> is returned.<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Example
of conditional operator<o:p></o:p></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">#include <stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">int main(){<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> char feb;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> int days;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> printf("Enter
l if the year is leap year otherwise enter 0: ");<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
scanf("%c",&feb);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">
days=(feb=='l')?29:28;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> /*If test condition
(feb=='l') is true, days will be equal to 29. */<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> /*If test condition
(feb=='l') is false, days will be equal to 28. */ <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> printf("Number
of days in February = %d",days);<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";"> return 0;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">}<o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Output</span></b><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Enter l if the year is leap year otherwise enter n: l<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman";">Number of days in February = 29<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">Other operators such as
&(reference operator), *(dereference operator) and ->(member selection)
operator will be discussed in </span><span lang="EN-US"><a href="http://www.programiz.com/c-programming/c-pointers"><span style="color: blue; font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">pointer chapter</span></a></span><span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">- See more at:
http://www.programiz.com/c-programming/c-operators#relational<o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
</div>
<div class="MsoNormal">
<br /></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<u><span style="font-family: Algerian; font-size: 36pt;">C
Operators<o:p></o:p></span></u></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/c-operators.html"><span style="color: black; text-decoration: none; text-underline: none;">what is operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/logical-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Logical operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/bitwise-operators.html"><span style="color: black; text-decoration: none; text-underline: none;">Bitwise operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/arithmetic-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Arithmetic
operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/realational-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Relational
operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/sizeof-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Sizeof operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/increment-and-decrement-operators.html"><span style="color: black; text-decoration: none; text-underline: none;">Increment or
Decrement operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/comma-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Comma operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/11/type-cast-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Type cast operator</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/ternary-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Ternary operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 10pt;"> </span></div>
<div class="MsoListParagraphCxSpFirst" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 18pt; text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 16.5pt;">v<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">C Operators<o:p></o:p></span></u></div>
<div class="MsoListParagraphCxSpLast" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 18pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">What is operators?</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In simple word operators are those which operator anything like as
data,maths,information etc i.e.. When we talking about C operators, i want to
say you that <span style="background: #EEEEEE;">C is very rich in operators</span>.
Operators tells to compiler that what do with data. There are mainly operators
in c as following:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Logical Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Bitwise Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Relational Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Assignment Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">5.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Sizeof Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">6.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment and Decrement operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">7.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Comma operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">8.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Type cast operator</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">9.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Conditional operators or ternary
operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Sometime operators are divided according numbers of operands. So there
are three types of operators as following : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 600px;">
<tbody>
<tr>
<td colspan="4" style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Operators</span><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;"></td>
<td style="background: #EEEEEE; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Unary<o:p></o:p></span></b></div>
</td>
<td style="background: #CCCCCC; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Binary<o:p></o:p></span></b></div>
</td>
<td style="background: #999999; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ternary<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">operand<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">single<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">third<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">works<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">right to left<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">left to right<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">left to right<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Example_1<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">++ , --<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+, -, *, /<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">? :<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Example_2<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">! , ~<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">&& , ||<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;"></td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">1.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Logical Operator<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">When we use if, for,
while then use one condition at once time what happen if we examine condition
more than one? In this case we use logical operators. So logical operators are
used to combine two or more condition.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">There are three types of logical operators as following:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Operator
symbol</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Name</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">&&</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical AND</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">||</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical OR</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">!</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical NOT</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
AND OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">&&</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The condition is true
if and only if both two expression are true otherwise condition false. The
truth table of logical AND operators end of this chapter.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
OR OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">||</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> The condition is
true if one of expression is true and condition will be false only if both
expression are false. See example of || operator at end of this chapter.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
NOT OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">!</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It reverse the
expression i.e if the expression evaluates to a non-zero value,
then applying ! operator to it results into a 0 and vice versa. The final
result (after applying ! ) 0 or 1 is considered to be false or true
respectively.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of above three
operators :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">//following
table con = condition.<o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 535px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">Con
2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1<span class="apple-converted-space"> </span><span style="color: magenta;">&&</span><span class="apple-converted-space"> </span>con 2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1<span class="apple-converted-space"> </span><span style="color: magenta;">||</span><span class="apple-converted-space"> </span>con 2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="color: magenta; font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">!</span></b><span class="apple-converted-space"><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";"> </span></b></span><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="background-position: initial initial; background-repeat: initial initial; color: magenta; font-family: inherit, serif;">!</span></b><span class="apple-converted-space"><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";"> </span></b></span><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Some numerical example
:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">if</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(10>5<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">&&</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">1000<2001)
// True</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">while</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(
; num>=1<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">||</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">num<=100
; ) // if num=1 True</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Now some discuss
of NOT operator when we write condition if( 1<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">!</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">=
0 ) what is mean it? It is mean "<span style="background: #F3F3F3;">one is
not equal to zero</span>", so is condition TRUE or False? It is true.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Let's understand following example :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">if</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(sex!='M')</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"Person
is Female"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">else</span><span style="color: blue; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"Person
is Male"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In above example
evaluate first printf if condition is false otherwise evaluate second printf.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="background-position: initial initial; background-repeat: initial initial; color: magenta; font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">!</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(x<22)
it is also we write (x>=22) // both are equal.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<h3 style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #161a4e; font-family: "Georgia","serif"; font-size: 16.5pt; font-weight: normal;">Write a C
Program by using Logical AND and OR Operator<o:p></o:p></span></h3>
<div align="center" class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VXxjNnoHFjp3Ru3kc1FipQn832bgvDvShToRmH_O-skGdMMuTYLEYgElzoN6TnQjokRf09YRzbjQKM4QJYS0eMIBeiOZMvHnx63hrvHjvcV8366xnGb0xlt_fdCtjkFrzmrtQ2ISxYg/s1600/logical-operators.jpg"><span style="color: #177d75; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
alt="Description: Logical Operators"
href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VXxjNnoHFjp3Ru3kc1FipQn832bgvDvShToRmH_O-skGdMMuTYLEYgElzoN6TnQjokRf09YRzbjQKM4QJYS0eMIBeiOZMvHnx63hrvHjvcV8366xnGb0xlt_fdCtjkFrzmrtQ2ISxYg/s1600/logical-operators.jpg"
style='width:240pt;height:167.25pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\hcl\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg"
o:title="Logical Operators"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: Logical Operators" border="0" height="223" src="file:///C:/Users/hcl/AppData/Local/Temp/msohtmlclip1/01/clip_image001.jpg" v:shapes="Picture_x0020_1" width="320" /><!--[endif]--></span></a><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br />
<b><span style="background: #FAFBFE;">Statement of C Program: </span></b><span style="background: #FAFBFE;">This Program illustrates the logical ANDing and
ORing operations: </span></span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">#include<stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">#include<conio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">void main()<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int a , b , c;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: #FAFBFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">clrscr();</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">a = 4 , b = 3;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br />
<a href="" name="more"></a>c = a && b;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">b = a||b||c;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">a = a && b||c;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , a\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , b\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , c\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: blue; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #f3f3f3; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Output:<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">2.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Bitwise operators<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The smallest element in
memory on which are able to operate is called byte; and the programming
language are byte oriented. One of the c powerful features is a set of bit
manipulation operators. There are various bitwise operators in C as following
table; we learn all step by step :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Operators</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Name</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">&</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise AND</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">|</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise OR</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">^</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise XOR(exclusive OR)</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">>></span><span style="font-size: 12.0pt; line-height: 115%;"> </span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Left shift</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;"><<</span><span style="font-size: 12.0pt; line-height: 115%;"> </span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">right shift</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">~</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">One's complement</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">These operators can operate upon ints and chars but not on floats
and doubles. Bits are numbered from zero onwards, increasing from right to left
as following figure:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
7<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
6<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
5<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
4<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
3<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
2<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
0<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: #D9EAD3; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b>8 bit Character</b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
16<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
15<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
14<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
13<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
12<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
11<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
10<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
9<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
8<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
7<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
6<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
5<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
4<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
3<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
2<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
0<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: #D9EAD3; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b>16 bit Integer</b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #F3F3F3;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #F3F3F3; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
AND Operator (&)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The & operator operates on a pair of bits to yield a resultant
bit. The rules that decide the value of the resultant bit also called truth
table are shown below:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 200px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Bit x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Bit y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x & y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The best use of the AND operator is to check whether a particular
bit of an operand is ON or OFF. The meaning of ON means 1 and OFF means 0. The
following program puts this logic clear:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> /*Example of
bitwise AND operator*/</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">void</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">main()</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x=45;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y=37;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">z;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> clrscr();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> z = x & y;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"\nValue
of z=%d"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">,z);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Output of above
program:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Value of z=37</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In above program compiler first calculate the binary x and y which
is 111101 and 100101 respectly. After this its work on bitwise operator and
final result is 37 which binary code are 100101. The following table shown the
result : </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Values</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">binary code</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">x = 45</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">111101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">y = 37</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">100101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">z = x & y</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">100101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: white; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
OR ( | )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Truth table for bitwise
OR are as following :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">z = x | y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
XOR ( ^ )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It is also called
exclusive OR. If there are similar bit then its return 0 otherwise its return
1. Let watch truth table of x^y :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">z = x ^ y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of exclusive OR
:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 75</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = 64</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">z = x ^ y</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> x = 1 0 0 1 0 1 1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> y = 1 0 0 0 0 0 0<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9D2E9;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> z = 0 0 0 1 0 1 1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">hence, the value of
z=11</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background: white; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
right shift ( >> )</span></b><span style="color: #93c47d; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Right shift operator
shifts each bit in its left operand to the right. The number of places the bits
are shifted depends on the number following the operator i.e. its right
operand.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In simple meaning of
bitwise right shift as :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">
</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">insertion(zero) <span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">
deletation</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of right shift
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = x >> 2</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[x=15 before right
shifting ] 0000
0000 0000 1111<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x >> 2
during right shifting] <span class="apple-converted-space"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">0000
0000 0000 11</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">11</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x >> 2 after
right shifting] 0000 0000 0000 0011<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so now value of y=3.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Left
Shift operator ( << )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">This is similar to the
right shift operator, the only difference being that the bits are shifted to
the left, and for each shifted, a 0 is added to the right of the number.
Following structure shows it :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> </span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">deletatio
<span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">
insertion(zero) </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of right shift
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = x << 2</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[x=15 before right
shifting ]
0000 0000 0000 1111<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x << 2
during right shifting] <span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">00
0000 0000 1111</span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x << 2 after
right shifting] 0000 0000
0011 1100<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so now value of y=60.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">One's
complement ( ~ ) or Tilde</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It is reverse the bit
i.e. if bit is 0 then its return 1 and when bit is 1 it is return 0.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">example of tilde:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = ~ x</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(15)<sub>10</sub><span class="apple-converted-space"> </span>= 0000 0000 0000 1111</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = ~ x
1111 1111 1111 0000</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">hense, 65535 - 15 =
65520.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so the value of y is
65520. </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 24pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;">
</span></span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 24pt;">Arithmetic Operator<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 24pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Arithmetic operators
are special mathematical symbol which do all arithmetical calculation of the
programs. Following table display the operators and their works:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 3.75pt 3.75pt 3.75pt 3.75pt; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">Name of operators</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">Symbol</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">works</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">example</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Addition operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">+</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Add the numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">sum=7+8+1=16</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Subtract operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">-</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Subtraction of
numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">sub=100-50=50</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Multiply operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">*</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Multiple of
numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">muti=8*9=72</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Modulus operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">%</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Find the reminder
of numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">mod=45%40=5</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
Division operator<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red;">/</span><span style="color: red; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
Find the division of numbers<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
div=45/40=1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<br /></div>
<h3 style="margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-family: Verdana; mso-bidi-font-weight: normal; mso-fareast-font-family: Verdana;">4.</span><!--[endif]--><u><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-weight: normal;">Realational
Operator<o:p></o:p></span></u></h3>
<h3 style="margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-weight: normal;"> </span></u></h3>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">When we write
program, many time we requirement to comparison of two or more data, in that
case we uses relational operators. There are following relational operators as
following : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: #F3F3F3; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Operators
Name</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">> Greater than</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span class="apple-converted-space"><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">< Less than</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span class="apple-converted-space"><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">=</span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;"> </span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;"> Equals
to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">>= Greater
than equals to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">
<= Less than equals to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">!= Not equals
to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">The syntax of
relational expression as :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"><data
value 1>Relational operator<data value 2></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Example
:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">10<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;">>=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">5</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">-50<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;"><=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">0<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;">!=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">0</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">5.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> Sizeof operator<o:p></o:p></span></u></h3>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Sizeof operator
calculate the size of data i.e. how many bit a specific data having.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Syntax of sizeof
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">printf("<format
string>",sizeof<(data type variable)>);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> /*Program to
sizeof operator*/</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <b>#include<</b></span><b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">stdio.h</span></b><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span></b><b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">conio.h</span></b><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;"> void</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">main()</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> {</span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x=10;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> clrscr();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"\nSize
of x is %d"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">,sizeof(x));</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> getch();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <b>}</b></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Output of above
program :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Size of x is
2 </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">We read in<span class="apple-converted-space"> </span><b><a href="http://cprogrammingcodes.blogspot.com/2011/09/data-type-in-c.html"><span style="color: black;">data type chapter</span></a><span class="apple-converted-space"> </span></b>that an int allocate only 2 byte
in memory,Hence, x = 2.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">6.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Increment and Decrement operators<o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Increment operators (</span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">++</span></b><b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">)</span></b><span style="color: #93c47d; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment operators are increase the value of subsequent. value may be
increase according to the<b> </b>programmer.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment operator are two types as follows :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Post increment</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Pre increment</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Decrement operators ( </span></b><b><span style="color: magenta; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">--</span></b><b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> )</span></b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">decrement operators decrease the value to one, two and so on.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">As like Increment operators, decrement operators are also two type as
: </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Post decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Pre decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Before we more discuss about increment and decrement operator, let
understand some expression; that's are using in all operators.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Now some issues of
pre and post increment and decrement, we will discuss after solve following
programming :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> x
= 5 </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> x = 5 </span> <span style="background: #D9EAD3;"> x = 5 </span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> x
= x+1 </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> ++x </span> <span style="background: #D9EAD3;"> x++ </span> </span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> </span><span style="background-color: #e06666; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">x = 6 </span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> </span><span style="background: #E06666;">x = 6</span></span><span style="background: #CFE2F3; color: #d9ead3; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background-position: initial initial; background-repeat: initial initial;"> </span><span style="background: #D9EAD3;"> </span><span style="background: #E06666;"> x=5 </span><span style="background: #D9EAD3;"> </span>
</span><span style="font-family: 'Courier New'; font-size: 10pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In above program u
notice that value of x increase to one in all three expression but after the
increasing one, the final value of x in not same, third box result is differ to
another two boxes. Now you know that c operators are mostly three types, ++ and
-- operators are Unary operators.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"><br />
Post increment or decrement are lowest precedence so it is solve at the end of
program. Hence above program in third box first value of x is print i.e. 5
after, it is increase.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"><br />
Unary operators are solve right to left.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.1</span></b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Solve the expression in C language
compiler ,assuming x,z are integer variables:</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">z
= x++ + x++</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">where
x=7</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #38761d; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans.</span></b><span style="color: #38761d; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">stepwise evaluation of this expression is shown below : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z </span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">=</span><span style="font-family: 'Courier New'; font-size: 18pt;"> x++ </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x++ </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//post increment of x=2</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//++x increase the value of x one so x=8 </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*Now all pre and post increment/decrement are solved so we
write the the expression in normal mathematical expression*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//put the current value of x i.e. 8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+ </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">z = 24</span></span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">syntax</span><span style="font-family: 'Courier New'; font-size: 12pt;"> </span><span style="color: #bf9000; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="font-family: 'Courier New'; font-size: 12pt;"> x=current value-post increment/decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">so x = 8 + 2</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">x = 10</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.2</span></b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Solve the following expression
: </span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">z
= ++x + y-- - ++y - x-- - x-- - ++y - x--</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">where
x = 7</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
y = -3</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans.</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><span style="font-family: 'Courier New'; font-size: 10pt;"> </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 10pt;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">y-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x--</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/* post decrement of x=3 and</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> post decrement of y=1 */</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= ++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /* its unary operator so we solve it from</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> right to left*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now y=-3+1=-2</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now y=-2+1=-1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now x=7+1=8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*now all increment and decrement operators </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> all solved so we put the current value of x </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> and y.*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 16 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">z= -15</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">x=8-3=5 </span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">y=-1-1=-2</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Related some
increment or decrement operators exercise:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.3 </span></b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> solve the following equations:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x-- </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
<br />
where x = 7 and<br />
y = 9<br />
<br />
<b><i>hint:</i></b>(For your cross-checking, answer is x=7, y=9 and z=18).<br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.4</span></b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> solve
the following equations:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">*</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> y++<b> </b></span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y
</span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">%</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> x++<br />
<br />
where x = 5 and<br />
y = 2<br />
<br />
<b><i>hint:</i></b>(For your cross-checking, answer is x=8, y=2 and z=0).<br />
<br />
--------------------------------------------------------------------------------<br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.3</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> answer
with explanation :<br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x-- </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
<br />
<br />
where x = 7 and<br />
y = 9<br />
<br />
</span><b><span style="color: #38761d; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
post decrement of x = 1<br />
post increment of x = 1<br />
<br />
z = x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
z = x <b>+</b> ++y - x + y </span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//
now y = 9-1 = 8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
z = x + y - x + y </span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//
now y = 8+1 = 9</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
</span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">// now put the value of x and y</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
z = 7 + 9 - 7 + 9<br />
z = 9 + 9<br />
z = 18<br />
<br />
Hence, our final answer will be:<br />
<br />
<b>x</b> = 7 - 1 + 1 = <b>7</b><br />
<b>y</b> = <b>9</b><br />
<b>z</b> = <b>18</b><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">7.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Comma operator<o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Comma operator ( </span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span></b><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Evaluate of comma operator- <span style="background: #EEEEEE;">Left
to right</span>.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">Uses of comma operator</span><span style="font-family: 'Courier New'; font-size: 18pt;"> as following :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples declaration</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples initialization</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples variation</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples statement </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">Example</span><span style="font-family: 'Courier New'; font-size: 18pt;"> of comma operator</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">int x=0</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">y=1</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">z=2;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">for(x=0 </span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;"> y=1</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;"> z=2 ; condition1 </span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">condition2 ;increment/decrement)</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">8.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Type-cast operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">The type cast operator is very important in C. Cast operator uses in
convert one data type to another data types. Type casting may be two types:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Implicit type cast</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Explicit type cast</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><u><span style="font-family: 'Courier New'; font-size: 18pt;">Implicit type cast</span></u></b><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In C, implicit type cast are automatically handled by compiler i.e. when
two or more data types are getting execution then the final data-type will be
that data type as it is declared, i.e it is not depend on conversion of data
type.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">It is clear understand by example as:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> i,j;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> f;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> d;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> i=d*f+f*j;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">what you think, <i>what
will be data type of i</i>?</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">it is double!! No, right answer is </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">. You see in program that </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> has high priority or
precedence of </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> and </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">, so result of data type will be comes in </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> but when result is assign in i,
it will be convert in </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> because i is declared as </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">. It is <i>implicit type casting</i>.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><u><span style="font-family: 'Courier New'; font-size: 18pt;">Explicit type cast</span></u></b><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">An explicit type cast is a cast that we should specify invoke with either
the cast. The compiler does not automatically invoke to resolve the data type
conversion.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Let's understand explicit with example:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #999999; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/*A student marks of three subject as m1,m2,m3 and calculate
percentage(per)*/</span><span style="color: #999999; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">#include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">#include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">{</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">}</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><u><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">output</span></u></b><b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:-</span></b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">0.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Surprise, let's
explain to me, it is a common type cast mistake, look at</span><span style="color: #444444; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>per=total/300*100;</u></span><span style="font-family: 'Courier New'; font-size: 18pt;"> statement. In this statement
first of all total/300 will be solve so total(240) and 300 are </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> hence 240/300 will be produce a </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> value so result is 0.000000. These mistake
may me solved by three ways as:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">1. We mention <u>type
cast</u> in above program as: </span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="color: #999999; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*demonstration
of type casting*/</span><span style="color: #666666; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=(</span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;">)total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:-</span></b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">2. We used total as </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> variable.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">3. we convert </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> to </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> to the 300 by adding decimal portion.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300.0*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">9.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Ternary operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Main features of <span style="background: #CCCCCC;">ternary operators</span> as
follows : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">There are three operand.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">It works from left to right</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Example of ternary operator is conditional operator. Symbol of
conditional operator : <span style="background: #EEEEEE;">condition </span></span><span style="background: #EEEEEE; color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">?</span><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> True_parts </span><span style="background: #EEEEEE; color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> False_parts </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-62287433966398250462013-08-07T01:20:00.001-07:002013-08-07T01:20:57.873-07:00Operator in C <div dir="ltr" style="text-align: left;" trbidi="on">
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<u><span style="font-family: Algerian; font-size: 36pt;">C
Operators<o:p></o:p></span></u></div>
<div align="center" class="MsoNormal" style="background: white; margin-bottom: 3.0pt; margin-left: 18.0pt; margin-right: 0cm; margin-top: 0cm; mso-line-height-alt: 13.5pt; text-align: center;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/c-operators.html"><span style="color: black; text-decoration: none; text-underline: none;">what is operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/logical-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Logical operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/bitwise-operators.html"><span style="color: black; text-decoration: none; text-underline: none;">Bitwise operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/arithmetic-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Arithmetic
operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/realational-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Relational
operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/sizeof-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Sizeof operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/increment-and-decrement-operators.html"><span style="color: black; text-decoration: none; text-underline: none;">Increment or
Decrement operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/comma-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Comma operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/11/type-cast-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Type cast operator</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 12pt;"><a href="http://cprogrammingcodes.blogspot.com/2011/09/ternary-operator.html"><span style="color: black; text-decoration: none; text-underline: none;">Ternary operators</span></a></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">o<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 10pt;"> </span></div>
<div class="MsoListParagraphCxSpFirst" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 18pt; text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-size: 16.5pt;">v<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">C Operators<o:p></o:p></span></u></div>
<div class="MsoListParagraphCxSpLast" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 18pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">What is operators?</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In simple word operators are those which operator anything like as
data,maths,information etc i.e.. When we talking about C operators, i want to
say you that <span style="background: #EEEEEE;">C is very rich in operators</span>.
Operators tells to compiler that what do with data. There are mainly operators
in c as following:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Logical Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Bitwise Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Relational Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Assignment Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">5.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Sizeof Operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">6.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment and Decrement operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">7.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Comma operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">8.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Type cast operator</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">9.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Conditional operators or ternary
operators</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Sometime operators are divided according numbers of operands. So there
are three types of operators as following : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 600px;">
<tbody>
<tr>
<td colspan="4" style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Operators</span><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;"></td>
<td style="background: #EEEEEE; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Unary<o:p></o:p></span></b></div>
</td>
<td style="background: #CCCCCC; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Binary<o:p></o:p></span></b></div>
</td>
<td style="background: #999999; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ternary<o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">operand<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">single<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">third<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">works<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">right to left<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">left to right<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">left to right<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Example_1<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">++ , --<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+, -, *, /<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">? :<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Example_2<o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">! , ~<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">&& , ||<o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;"></td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">1.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Logical Operator<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">When we use if, for,
while then use one condition at once time what happen if we examine condition
more than one? In this case we use logical operators. So logical operators are
used to combine two or more condition.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">There are three types of logical operators as following:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Operator
symbol</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Name</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">&&</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical AND</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">||</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical OR</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">!</span><span style="color: magenta; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Logical NOT</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
AND OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">&&</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The condition is true
if and only if both two expression are true otherwise condition false. The
truth table of logical AND operators end of this chapter.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
OR OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">||</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> The condition is
true if one of expression is true and condition will be false only if both
expression are false. See example of || operator at end of this chapter.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">LOGICAL
NOT OPERATOR (<span class="apple-converted-space"> </span></span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">!</span></b><span class="apple-converted-space"><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;"> </span></b></span><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It reverse the
expression i.e if the expression evaluates to a non-zero value,
then applying ! operator to it results into a 0 and vice versa. The final
result (after applying ! ) 0 or 1 is considered to be false or true
respectively.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of above three
operators :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">//following
table con = condition.<o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 535px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">Con
2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1<span class="apple-converted-space"> </span><span style="color: magenta;">&&</span><span class="apple-converted-space"> </span>con 2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1<span class="apple-converted-space"> </span><span style="color: magenta;">||</span><span class="apple-converted-space"> </span>con 2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="color: magenta; font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">!</span></b><span class="apple-converted-space"><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";"> </span></b></span><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
1</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="background-position: initial initial; background-repeat: initial initial; color: magenta; font-family: inherit, serif;">!</span></b><span class="apple-converted-space"><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";"> </span></b></span><b><span style="font-family: "inherit","serif"; mso-bidi-font-family: "Courier New";">con
2</span></b><b><span style="font-family: "inherit","serif"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-family: "Courier New";"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D0E0E3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9D2E9; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">True</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #CFE2F3; padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">False</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Some numerical example
:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">if</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(10>5<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">&&</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">1000<2001)
// True</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">while</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(
; num>=1<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">||</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">num<=100
; ) // if num=1 True</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Now some discuss
of NOT operator when we write condition if( 1<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">!</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">=
0 ) what is mean it? It is mean "<span style="background: #F3F3F3;">one is
not equal to zero</span>", so is condition TRUE or False? It is true.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Let's understand following example :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">if</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(sex!='M')</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"Person
is Female"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">else</span><span style="color: blue; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"Person
is Male"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In above example
evaluate first printf if condition is false otherwise evaluate second printf.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="background-position: initial initial; background-repeat: initial initial; color: magenta; font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">!</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(x<22)
it is also we write (x>=22) // both are equal.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<h3 style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #161a4e; font-family: "Georgia","serif"; font-size: 16.5pt; font-weight: normal;">Write a C
Program by using Logical AND and OR Operator<o:p></o:p></span></h3>
<div align="center" class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VXxjNnoHFjp3Ru3kc1FipQn832bgvDvShToRmH_O-skGdMMuTYLEYgElzoN6TnQjokRf09YRzbjQKM4QJYS0eMIBeiOZMvHnx63hrvHjvcV8366xnGb0xlt_fdCtjkFrzmrtQ2ISxYg/s1600/logical-operators.jpg"><span style="color: #177d75; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-no-proof: yes; text-decoration: none; text-underline: none;"><!--[if gte vml 1]><v:shapetype id="_x0000_t75"
coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_1" o:spid="_x0000_i1025" type="#_x0000_t75"
alt="Description: Logical Operators"
href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VXxjNnoHFjp3Ru3kc1FipQn832bgvDvShToRmH_O-skGdMMuTYLEYgElzoN6TnQjokRf09YRzbjQKM4QJYS0eMIBeiOZMvHnx63hrvHjvcV8366xnGb0xlt_fdCtjkFrzmrtQ2ISxYg/s1600/logical-operators.jpg"
style='width:240pt;height:167.25pt;visibility:visible;mso-wrap-style:square'
o:button="t">
<v:imagedata src="file:///C:\Users\hcl\AppData\Local\Temp\msohtmlclip1\01\clip_image001.jpg"
o:title="Logical Operators"/>
</v:shape><![endif]--><!--[if !vml]--><img alt="Description: Logical Operators" border="0" height="223" src="file:///C:/Users/hcl/AppData/Local/Temp/msohtmlclip1/01/clip_image001.jpg" v:shapes="Picture_x0020_1" width="320" /><!--[endif]--></span></a><span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br />
<b><span style="background: #FAFBFE;">Statement of C Program: </span></b><span style="background: #FAFBFE;">This Program illustrates the logical ANDing and
ORing operations: </span></span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">#include<stdio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">#include<conio.h><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">void main()<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int a , b , c;<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="background: #FAFBFE; color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">clrscr();</span><span style="font-family: "Times New Roman","serif"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">a = 4 , b = 3;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br />
<a href="" name="more"></a>c = a && b;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">b = a||b||c;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">a = a && b||c;<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , a\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , b\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">printf("%d" , c\n);<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #333333; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">}<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #FAFBFE; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: blue; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: #f3f3f3; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Output:<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: black; line-height: 13.5pt; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="color: white; font-family: "Arial","sans-serif"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">2.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Bitwise operators<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The smallest element in
memory on which are able to operate is called byte; and the programming
language are byte oriented. One of the c powerful features is a set of bit
manipulation operators. There are various bitwise operators in C as following
table; we learn all step by step :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Operators</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Name</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">&</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise AND</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">|</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise OR</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">^</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Bitwise XOR(exclusive OR)</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">>></span><span style="font-size: 12.0pt; line-height: 115%;"> </span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">Left shift</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;"><<</span><span style="font-size: 12.0pt; line-height: 115%;"> </span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">right shift</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">~</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">One's complement</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">These operators can operate upon ints and chars but not on floats
and doubles. Bits are numbered from zero onwards, increasing from right to left
as following figure:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
7<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
6<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
5<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
4<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
3<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
2<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
0<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: #D9EAD3; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b>8 bit Character</b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
16<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
15<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
14<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
13<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
12<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
11<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
10<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
9<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
8<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
7<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
6<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
5<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
4<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
3<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
2<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
0<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: #D9EAD3; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b>16 bit Integer</b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #F3F3F3;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #F3F3F3; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
AND Operator (&)</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The & operator operates on a pair of bits to yield a resultant
bit. The rules that decide the value of the resultant bit also called truth
table are shown below:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="background: white; mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 200px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Bit x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">Bit y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x & y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">The best use of the AND operator is to check whether a particular
bit of an operand is ON or OFF. The meaning of ON means 1 and OFF means 0. The
following program puts this logic clear:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> /*Example of
bitwise AND operator*/</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">void</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">main()</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x=45;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y=37;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">z;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> clrscr();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> z = x & y;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"\nValue
of z=%d"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">,z);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Output of above
program:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Value of z=37</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In above program compiler first calculate the binary x and y which
is 111101 and 100101 respectly. After this its work on bitwise operator and
final result is 37 which binary code are 100101. The following table shown the
result : </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">Values</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-size: 18.0pt; line-height: 115%;">binary code</span></b><b><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">x = 45</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">111101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">y = 37</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">100101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">z = x & y</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-size: 18.0pt; line-height: 115%;">100101</span><span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: white; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
OR ( | )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Truth table for bitwise
OR are as following :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">z = x | y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
XOR ( ^ )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It is also called
exclusive OR. If there are similar bit then its return 0 otherwise its return
1. Let watch truth table of x^y :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 0cm 0cm 0cm 0cm; mso-yfti-tbllook: 1184; width: 300px;">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">x</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">z = x ^ y</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">1</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="padding: 0cm 0cm 0cm 0cm;">
<div align="center" class="MsoNormal" style="text-align: center;">
<span style="font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">0</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of exclusive OR
:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 75</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = 64</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">z = x ^ y</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> x = 1 0 0 1 0 1 1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> y = 1 0 0 0 0 0 0<o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9D2E9;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> z = 0 0 0 1 0 1 1<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">hence, the value of
z=11</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background: white; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Bitwise
right shift ( >> )</span></b><span style="color: #93c47d; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Right shift operator
shifts each bit in its left operand to the right. The number of places the bits
are shifted depends on the number following the operator i.e. its right
operand.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">In simple meaning of
bitwise right shift as :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">
</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">insertion(zero) <span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">
deletation</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of right shift
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = x >> 2</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[x=15 before right
shifting ] 0000
0000 0000 1111<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x >> 2
during right shifting] <span class="apple-converted-space"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">0000
0000 0000 11</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">11</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x >> 2 after
right shifting] 0000 0000 0000 0011<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so now value of y=3.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">Left
Shift operator ( << )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">This is similar to the
right shift operator, the only difference being that the bits are shifted to
the left, and for each shifted, a 0 is added to the right of the number.
Following structure shows it :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"> </span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">deletatio
<span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">
insertion(zero) </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Example of right shift
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = x << 2</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[x=15 before right
shifting ]
0000 0000 0000 1111<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x << 2
during right shifting] <span class="apple-converted-space"> </span></span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">00
0000 0000 1111</span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;">00</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;">[y = x << 2 after
right shifting] 0000 0000
0011 1100<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so now value of y=60.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div align="center" class="MsoNormal" style="background: #EEEEEE; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; line-height: 115%;">One's
complement ( ~ ) or Tilde</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">It is reverse the bit
i.e. if bit is 0 then its return 1 and when bit is 1 it is return 0.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">example of tilde:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x = 15</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = ~ x</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">(15)<sub>10</sub><span class="apple-converted-space"> </span>= 0000 0000 0000 1111</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">y = ~ x
1111 1111 1111 0000</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">hense, 65535 - 15 =
65520.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">so the value of y is
65520. </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 24pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt; font-weight: normal;">
</span></span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 24pt;">Arithmetic Operator<o:p></o:p></span></u></h3>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: Verdana, sans-serif; font-size: 24pt;"> </span></u></h3>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Arithmetic operators
are special mathematical symbol which do all arithmetical calculation of the
programs. Following table display the operators and their works:</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="mso-cellspacing: 0cm; mso-padding-alt: 3.75pt 3.75pt 3.75pt 3.75pt; mso-yfti-tbllook: 1184; width: 500px;">
<tbody>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">Name of operators</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">Symbol</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">works</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: "Courier New";">example</span></b><b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></b></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Addition operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">+</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Add the numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">sum=7+8+1=16</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Subtract operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">-</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Subtraction of
numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">sub=100-50=50</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Multiply operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">*</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Multiple of
numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">muti=8*9=72</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Modulus operator</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red; font-family: "Courier New";">%</span><span style="color: red; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">Find the reminder
of numbers</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="font-family: "Courier New";">mod=45%40=5</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
Division operator<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
<span style="color: red;">/</span><span style="color: red; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
Find the division of numbers<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
<td style="background: #D9EAD3; padding: 3.75pt 3.75pt 3.75pt 3.75pt;">
<div class="MsoNormal">
div=45/40=1<span style="font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="background: white; margin-bottom: 12.0pt;">
<br /></div>
<h3 style="margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-family: Verdana; mso-bidi-font-weight: normal; mso-fareast-font-family: Verdana;">4.</span><!--[endif]--><u><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-weight: normal;">Realational
Operator<o:p></o:p></span></u></h3>
<h3 style="margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt;">
<u><span style="font-family: "Verdana","sans-serif"; font-size: 16.5pt; mso-bidi-font-weight: normal;"> </span></u></h3>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">When we write
program, many time we requirement to comparison of two or more data, in that
case we uses relational operators. There are following relational operators as
following : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: #F3F3F3; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Operators
Name</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">> Greater than</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span class="apple-converted-space"><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">< Less than</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span class="apple-converted-space"><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;"> </span></span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">=</span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;"> </span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;"> Equals
to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">>= Greater
than equals to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt;">
<= Less than equals to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CCCCCC; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span class="apple-converted-space"> </span></span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt;">!= Not equals
to</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">The syntax of
relational expression as :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<br /></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"><data
value 1>Relational operator<data value 2></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Example
:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">10<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;">>=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">5</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">-50<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;"><=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; mso-line-height-alt: 13.5pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">0<span class="apple-converted-space"> </span></span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt;">!=</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt;">0</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<h3 style="background: white; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 36.0pt; margin-right: 0cm; margin-top: 9.0pt; mso-list: l0 level1 lfo4; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">5.</span><!--[endif]--><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;"> Sizeof operator<o:p></o:p></span></u></h3>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Sizeof operator
calculate the size of data i.e. how many bit a specific data having.</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">Syntax of sizeof
operator :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">printf("<format
string>",sizeof<(data type variable)>);</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<br /></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> /*Program to
sizeof operator*/</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <b>#include<</b></span><b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">stdio.h</span></b><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> #include<</span></b><b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">conio.h</span></b><b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">></span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;"> void</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">main()</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<b><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> {</span></b><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <span class="apple-converted-space"> </span></span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">int</span><span class="apple-converted-space"><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> </span></span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">x=10;</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> clrscr();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; line-height: 115%;">"\nSize
of x is %d"</span><span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">,sizeof(x));</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> getch();</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #D9EAD3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> <b>}</b></span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Output of above
program :</span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;"> Size of x is
2 </span><span style="font-family: 'Courier New'; font-size: 10pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background: #CFE2F3;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<span style="font-family: 'Courier New'; font-size: 18pt; line-height: 115%;">We read in<span class="apple-converted-space"> </span><b><a href="http://cprogrammingcodes.blogspot.com/2011/09/data-type-in-c.html"><span style="color: black;">data type chapter</span></a><span class="apple-converted-space"> </span></b>that an int allocate only 2 byte
in memory,Hence, x = 2.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">6.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Increment and Decrement operators<o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Increment operators (</span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">++</span></b><b><span style="color: #93c47d; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">)</span></b><span style="color: #93c47d; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment operators are increase the value of subsequent. value may be
increase according to the<b> </b>programmer.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Increment operator are two types as follows :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Post increment</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Pre increment</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Decrement operators ( </span></b><b><span style="color: magenta; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">--</span></b><b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 24.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> )</span></b><span style="color: #6aa84f; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">decrement operators decrease the value to one, two and so on.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">As like Increment operators, decrement operators are also two type as
: </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Post decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Pre decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Before we more discuss about increment and decrement operator, let
understand some expression; that's are using in all operators.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Now some issues of
pre and post increment and decrement, we will discuss after solve following
programming :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> x
= 5 </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> x = 5 </span> <span style="background: #D9EAD3;"> x = 5 </span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> x
= x+1 </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> ++x </span> <span style="background: #D9EAD3;"> x++ </span> </span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> </span><span style="background-color: #e06666; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">x = 6 </span><span style="background-color: #cccccc; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #CFE2F3;"> </span><span style="background: #E06666;">x = 6</span></span><span style="background: #CFE2F3; color: #d9ead3; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background-position: initial initial; background-repeat: initial initial;"> </span><span style="background: #D9EAD3;"> </span><span style="background: #E06666;"> x=5 </span><span style="background: #D9EAD3;"> </span>
</span><span style="font-family: 'Courier New'; font-size: 10pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In above program u
notice that value of x increase to one in all three expression but after the
increasing one, the final value of x in not same, third box result is differ to
another two boxes. Now you know that c operators are mostly three types, ++ and
-- operators are Unary operators.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"><br />
Post increment or decrement are lowest precedence so it is solve at the end of
program. Hence above program in third box first value of x is print i.e. 5
after, it is increase.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"><br />
Unary operators are solve right to left.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.1</span></b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Solve the expression in C language
compiler ,assuming x,z are integer variables:</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">z
= x++ + x++</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">where
x=7</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #38761d; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans.</span></b><span style="color: #38761d; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">stepwise evaluation of this expression is shown below : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z </span><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">=</span><span style="font-family: 'Courier New'; font-size: 18pt;"> x++ </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x++ </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//post increment of x=2</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//++x increase the value of x one so x=8 </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*Now all pre and post increment/decrement are solved so we
write the the expression in normal mathematical expression*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//put the current value of x i.e. 8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z = 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+ </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">z = 24</span></span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">syntax</span><span style="font-family: 'Courier New'; font-size: 12pt;"> </span><span style="color: #bf9000; font-family: "Courier New"; font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="font-family: 'Courier New'; font-size: 12pt;"> x=current value-post increment/decrement</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">so x = 8 + 2</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">x = 10</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.2</span></b><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> Solve the following expression
: </span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">z
= ++x + y-- - ++y - x-- - x-- - ++y - x--</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">where
x = 7</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
y = -3</span><span style="color: red; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans.</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><span style="font-family: 'Courier New'; font-size: 10pt;"> </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 10pt;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">y-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x-- </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x--</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/* post decrement of x=3 and</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> post decrement of y=1 */</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= ++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /* its unary operator so we solve it from</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> right to left*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> ++y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now y=-3+1=-2</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=++x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now y=-2+1=-1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z=x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> y </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> x</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//now x=7+1=8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*now all increment and decrement operators </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> all solved so we put the current value of x </span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #7f6000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> and y.*/</span><span style="color: #7f6000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> (</span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1) </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">8 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 8</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> z= </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 16 </span><b><span style="color: purple; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: 'Courier New'; font-size: 18pt;"> 1</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: #d9ead3; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">z= -15</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">x=8-3=5 </span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> <span style="background: #EEEEEE;">y=-1-1=-2</span></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Related some
increment or decrement operators exercise:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.3 </span></b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> solve the following equations:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x-- </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
<br />
where x = 7 and<br />
y = 9<br />
<br />
<b><i>hint:</i></b>(For your cross-checking, answer is x=7, y=9 and z=18).<br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.4</span></b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> solve
the following equations:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">*</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> y++<b> </b></span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y
</span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">%</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> x++<br />
<br />
where x = 5 and<br />
y = 2<br />
<br />
<b><i>hint:</i></b>(For your cross-checking, answer is x=8, y=2 and z=0).<br />
<br />
--------------------------------------------------------------------------------<br />
<br />
</span><b><span style="color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Q.3</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> answer
with explanation :<br />
<br />
z = x++ </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x-- </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
<br />
<br />
where x = 7 and<br />
y = 9<br />
<br />
</span><b><span style="color: #38761d; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Ans:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
<br />
post decrement of x = 1<br />
post increment of x = 1<br />
<br />
z = x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> ++y </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">-</span></b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">x </span><b><span style="color: purple; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">+</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> --y<br />
z = x <b>+</b> ++y - x + y </span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//
now y = 9-1 = 8</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
z = x + y - x + y </span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">//
now y = 8+1 = 9</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
</span><span style="color: #999999; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">// now put the value of x and y</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br />
z = 7 + 9 - 7 + 9<br />
z = 9 + 9<br />
z = 18<br />
<br />
Hence, our final answer will be:<br />
<br />
<b>x</b> = 7 - 1 + 1 = <b>7</b><br />
<b>y</b> = <b>9</b><br />
<b>z</b> = <b>18</b><o:p></o:p></span></div>
<div class="MsoNormal" style="background: white;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">7.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Comma operator<o:p></o:p></span></u></b></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Comma operator ( </span></b><b><span style="color: magenta; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span></b><b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 24.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> )</span></b><span style="color: #6aa84f; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Evaluate of comma operator- <span style="background: #EEEEEE;">Left
to right</span>.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">Uses of comma operator</span><span style="font-family: 'Courier New'; font-size: 18pt;"> as following :</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples declaration</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples initialization</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples variation</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Multiples statement </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="background-color: #f3f3f3; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;">Example</span><span style="font-family: 'Courier New'; font-size: 18pt;"> of comma operator</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">int x=0</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">y=1</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">z=2;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">for(x=0 </span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;"> y=1</span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;"> z=2 ; condition1 </span><span style="color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">,</span><span style="font-family: 'Courier New'; font-size: 18pt;">condition2 ;increment/decrement)</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt;">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">8.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Type-cast operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">The type cast operator is very important in C. Cast operator uses in
convert one data type to another data types. Type casting may be two types:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Implicit type cast</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: 'Courier New'; font-size: 10pt;">2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Explicit type cast</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><u><span style="font-family: 'Courier New'; font-size: 18pt;">Implicit type cast</span></u></b><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">In C, implicit type cast are automatically handled by compiler i.e. when
two or more data types are getting execution then the final data-type will be
that data type as it is declared, i.e it is not depend on conversion of data
type.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">It is clear understand by example as:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> i,j;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> f;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> d;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> i=d*f+f*j;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">what you think, <i>what
will be data type of i</i>?</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">it is double!! No, right answer is </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">. You see in program that </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> has high priority or
precedence of </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> and </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">, so result of data type will be comes in </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">double</span><span style="font-family: 'Courier New'; font-size: 18pt;"> but when result is assign in i,
it will be convert in </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> because i is declared as </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;">. It is <i>implicit type casting</i>.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div align="center" class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt; text-align: center;">
<b><u><span style="font-family: 'Courier New'; font-size: 18pt;">Explicit type cast</span></u></b><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">An explicit type cast is a cast that we should specify invoke with either
the cast. The compiler does not automatically invoke to resolve the data type
conversion.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Let's understand explicit with example:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: #999999; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">/*A student marks of three subject as m1,m2,m3 and calculate
percentage(per)*/</span><span style="color: #999999; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">#include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">#include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">{</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">}</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><u><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">output</span></u></b><b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:-</span></b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">0.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 12pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">Surprise, let's
explain to me, it is a common type cast mistake, look at</span><span style="color: #444444; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>per=total/300*100;</u></span><span style="font-family: 'Courier New'; font-size: 18pt;"> statement. In this statement
first of all total/300 will be solve so total(240) and 300 are </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> hence 240/300 will be produce a </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> value so result is 0.000000. These mistake
may me solved by three ways as:</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">1. We mention <u>type
cast</u> in above program as: </span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="color: #999999; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> /*demonstration
of type casting*/</span><span style="color: #666666; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=(</span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;">)total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:-</span></b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> </span><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">2. We used total as </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> variable.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 10pt;"><br />
<br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;">3. we convert </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> to </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> to the 300 by adding decimal portion.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><br />
</span><span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">stdio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"> <o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> #include<</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">conio.h</span><span style="font-family: 'Courier New'; font-size: 18pt;">></span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> void</span><span style="font-family: 'Courier New'; font-size: 18pt;"> main()</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> {</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">
int</span><span style="font-family: 'Courier New'; font-size: 18pt;"> m1=70,m2=70,m3=100,total;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> </span><span style="color: blue; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> float</span><span style="font-family: 'Courier New'; font-size: 18pt;"> per;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> total=m1+m2+m3;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> per=total/300.0*100;</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> printf(</span><span style="color: red; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">"%f"</span><span style="font-family: 'Courier New'; font-size: 18pt;">,per);</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;"> }</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<b><span style="color: #cc0000; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> <u>output</u>:- </span></b><span style="font-family: 'Courier New'; font-size: 18pt;">80.000000</span><span style="color: #cc0000; font-family: "Courier New"; font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt 36pt;">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraph" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 9pt 0cm 0.0001pt 36pt; text-indent: -18pt;">
<!--[if !supportLists]--><b><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">9.</span></b><!--[endif]--><b><u><span style="font-family: Verdana, sans-serif; font-size: 16.5pt;">Ternary operator<o:p></o:p></span></u></b></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin-bottom: 0.0001pt;">
<span style="font-family: 'Courier New'; font-size: 18pt;">Main features of <span style="background: #CCCCCC;">ternary operators</span> as
follows : </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">There are three operand.</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">It works from left to right</span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; background-position: initial initial; background-repeat: initial initial; margin: 0cm 0cm 3pt; text-indent: 0cm;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><span style="font-family: 'Courier New'; font-size: 18pt;">Example of ternary operator is conditional operator. Symbol of
conditional operator : <span style="background: #EEEEEE;">condition </span></span><span style="background: #EEEEEE; color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">?</span><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> True_parts </span><span style="background: #EEEEEE; color: magenta; font-family: "Courier New"; font-size: 18.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="background-color: #eeeeee; background-position: initial initial; background-repeat: initial initial; font-family: 'Courier New'; font-size: 18pt;"> False_parts </span><span style="font-family: 'Courier New'; font-size: 10pt;"><o:p></o:p></span></div>
<br />
<div class="MsoNormal">
<br /></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-16205382556370275952013-08-07T01:09:00.001-07:002013-08-07T01:20:57.866-07:00<div dir="ltr" style="text-align: left;" trbidi="on">
<div id="stcpDiv" style="left: -1988px; position: absolute; top: -1999px;">
<h1 class="title" id="page-title">
C Programming Operators </h1>
<div class="tabs">
</div>
<div class="content-middle">
<div class="region region-content">
<div class="block block-system" id="block-system-main">
<div class="content">
<div class="node node-c-programming node-promoted clearfix" id="node-46">
<div class="content clearfix">
<div class="field field-name-body field-type-text-with-summary field-label-hidden">
<div class="field-items">
<div class="field-item even">
Operators are the symbol which operates on value or a variable. For example: <var>+</var> is a operator to perform addition.<br />
C programming language has wide range of operators to perform various
operations. For better understanding of operators, these operators can
be classified as:<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="Types of operators in C programming Language.">
<tbody>
<tr>
<th>Operators in C programming</th>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#arithmetic">Arithmetic Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#increment">Increment and Decrement Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#assignment">Assignment Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#relational">Relational Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#logical">Logical Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#conditional">Conditional Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#bitwise">Bitwise Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#other">Special Operators</a></td>
</tr>
</tbody>
</table>
<h3>
<a href="https://www.blogger.com/null" name="arithmetic"></a>Arithmetic Operators</h3>
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="List of all arithmetic operators in C programming.">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Meaning of Operator</th>
</tr>
</thead>
<tbody>
<tr>
<td>+</td>
<td>addition or unary plus</td>
</tr>
<tr>
<td>-</td>
<td>subtraction or unary minus</td>
</tr>
<tr>
<td>*</td>
<td>multiplication</td>
</tr>
<tr>
<td>/</td>
<td>division</td>
</tr>
<tr>
<td>%</td>
<td>remainder after division( modulo division)</td>
</tr>
</tbody>
</table>
Example of working of arithmetic operators<br />
<pre class="prettyprint"><code><span class="pln">
</span><span class="com">/* Program to demonstrate the working of arithmetic operators in C. */</span><span class="pln">
</span><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> a</span><span class="pun">=</span><span class="lit">9</span><span class="pun">,</span><span class="pln">b</span><span class="pun">=</span><span class="lit">4</span><span class="pun">,</span><span class="pln">c</span><span class="pun">;</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">+</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a+b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">-</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a-b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">*</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a*b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">/</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a/b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">%</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Remainder when a divided by b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="pun">}</span></code></pre>
<pre><samp>a+b=13
a-b=5
a*b=36
a/b=2
Remainder when a divided by b=1</samp></pre>
<b>Explanation</b><br />
Here, the operators +, - and * performed normally as you expected. In normal calculation, <code>9/4</code>
equals to 2.25. But, the output is 2 in this program. It is because, a
and b are both integers. So, the output is also integer and the compiler
neglects the term after decimal point and shows answer 2 instead of
2.25. And, finally <code>a%b</code> is 1,i.e. ,when <code>a=9</code> is divided by <code>b=4</code>, remainder is 1.<br />
<pre>Suppose a=5.0, b=2.0, c=5 and d=2
In C programming,
a/b=2.5
a/d=2.5
c/b=2.5
c/d=2
</pre>
<div class="note">
<b>Note:</b> % operator can only be used with integers.</div>
<h3>
<a href="https://www.blogger.com/null" name="increment"></a>Increment and decrement operators</h3>
In C, <code>++</code> and <code>--</code> are called increment and
decrement operators respectively. Both of these operators are unary
operators, i.e, used on single operand. <code>++</code> adds 1 to operand and <code>--</code> subtracts 1 to operand respectively. For example:<br />
<pre>Let a=5 and b=10
a++; //a becomes 6
a--; //a becomes 5
++a; //a becomes 6
--a; //a becomes 5
</pre>
<a href="http://www.programiz.com/article/increment-decrement-operator-difference-prefix-postfix" title="increment and decrement operator detail"><strong>Difference between ++ and -- operator as postfix and prefix</strong></a><br />
When <code>i++</code> is used as prefix(like: <code>++var</code>), <code>++var</code> will increment the value of <var>var</var> and then return it but, if <code>++</code>
is used as postfix(like: var++), operator will return the value of
operand first and then only increment it. This can be demonstrated by an
example:<br />
<pre class="prettyprint"><code><span class="pln">
</span><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> c</span><span class="pun">=</span><span class="lit">2</span><span class="pun">,</span><span class="pln">d</span><span class="pun">=</span><span class="lit">2</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">++);</span><span class="pln"> </span><span class="com">//this statement displays 2 then, only c incremented by 1 to 3.</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"%d"</span><span class="pun">,++</span><span class="pln">c</span><span class="pun">);</span><span class="pln"> </span><span class="com">//this statement increments 1 to c then, only c is displayed. </span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span></code>
</pre>
<b>Output</b><br />
<pre><samp>2
4
</samp></pre>
<h3>
<a href="https://www.blogger.com/null" name="assignment"></a>Assignment Operators</h3>
The most common assignment operator is <code>=</code>. This operator assigns the value in right side to the left side. For example:<br />
<pre>var=5 //5 is assigned to var
a=c; //value of c is assigned to a
5=c; // Error! 5 is a constant.
</pre>
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="List of all assignment operators in C programming">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Example</th>
<th scope="col">Same as</th>
</tr>
</thead>
<tbody>
<tr>
<td>=</td>
<td>a=b</td>
<td>a=b</td>
</tr>
<tr>
<td>+=</td>
<td>a+=b</td>
<td>a=a+b</td>
</tr>
<tr>
<td>-=</td>
<td>a-=b</td>
<td>a=a-b</td>
</tr>
<tr>
<td>*=</td>
<td>a*=b</td>
<td>a=a*b</td>
</tr>
<tr>
<td>/=</td>
<td>a/=b</td>
<td>a=a/b</td>
</tr>
<tr>
<td>%=</td>
<td>a%=b</td>
<td>a=a%b</td>
</tr>
</tbody>
</table>
<h3>
<a href="https://www.blogger.com/null" name="relational"></a>Relational Operator</h3>
Relational operators checks relationship between two operands. If the
relation is true, it returns value 1 and if the relation is false, it
returns value 0. For example:<br />
<pre>a>b
</pre>
Here, <code>></code> is a relational operator. If <var>a</var> is greater than <var>b</var>, <var>a>b</var> returns 1 if not then, it returns 0.<br />
Relational operators are used in decision making and loops in C programming.<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="List of all relational operators in C.">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Meaning of Operator</th>
<th scope="col">Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>==</td>
<td>Equal to</td>
<td>5==3 returns false (0)</td>
</tr>
<tr>
<td>></td>
<td>Greater than</td>
<td>5>3 returns true (1)</td>
</tr>
<tr>
<td><</td>
<td>Less than</td>
<td>5<3 returns false (0)</td>
</tr>
<tr>
<td>!=</td>
<td>Not equal to</td>
<td>5!=3 returns true(1)</td>
</tr>
<tr>
<td>>=</td>
<td>Greater than or equal to</td>
<td>5>=3 returns true (1)</td>
</tr>
<tr>
<td><=</td>
<td>Less than or equal to</td>
<td>5<=3 return false (0)</td>
</tr>
</tbody>
</table>
<h3>
<a href="https://www.blogger.com/null" name="logical"></a>Logical Operators</h3>
Logical operators are used to combine expressions containing relation operators. In C, there are 3 logical operators:<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="Logical Operators in C programming">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Meaning of Operator</th>
<th scope="col">Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>&&</td>
<td>Logial AND </td>
<td>If c=5 and d=2 then,((c==5) && (d>5)) returns false.</td>
</tr>
<tr>
<td>||</td>
<td>Logical OR</td>
<td>If c=5 and d=2 then, ((c==5) || (d>5)) returns true.</td>
</tr>
<tr>
<td>!</td>
<td>Logical NOT</td>
<td>If c=5 then, !(c==5) returns false.</td>
</tr>
</tbody>
</table>
<b>Explanation</b><br />
For expression, <var>((c==5) && (d>5))</var> to be true, both <var>c==5</var> and <var>d>5</var> should be true but, (d>5) is false in the given example. So, the expression is false. For expression <code>((c==5) || (d>5))</code> to be true, either the expression should be true. Since, <code>(c==5)</code> is true. So, the expression is true. Since, expression <code>(c==5)</code> is true, <code>!(c==5)</code> is false.<br />
<h3>
<a href="https://www.blogger.com/null" name="conditional"></a>Conditional Operator</h3>
Conditional operator takes three operands and consists of two symbols
? and : . Conditional operators are used for decision making in C. For
example:<br />
<pre>c=(c>0)?10:-10;
</pre>
If <var>c</var> is greater than 0, value of <var>c</var> will be 10 but, if <var>c</var> is less than 0, value of <var>c</var> will be -10.<br />
<h3>
<a href="https://www.blogger.com/null" name="bitwise"></a>Bitwise Operators</h3>
A bitwise operator works on each bit of data. Bitwise operators are used in bit level programming.<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="Bitwise operators in C">
<thead>
<tr>
<th scope="col">Operators</th>
<th scope="col">Meaning of operators</th>
</tr>
</thead>
<tbody>
<tr>
<td>&</td>
<td>Bitwise AND</td>
</tr>
<tr>
<td>|</td>
<td>Bitwise OR</td>
</tr>
<tr>
<td>^</td>
<td>Bitwise exclusive OR</td>
</tr>
<tr>
<td>~</td>
<td>Bitwise complement</td>
</tr>
<tr>
<td><<</td>
<td>Shift left</td>
</tr>
<tr>
<td>>></td>
<td>Shift right</td>
</tr>
</tbody>
</table>
Bitwise operator is advance topic in programming . Learn more about <a href="http://www.programiz.com/article/bitwise-operator-c-programming" title="Bitwise operators">bitwise operator in C programming</a>.<br />
<h3>
<a href="https://www.blogger.com/null" name="other"></a>Other Operators</h3>
<h4>
Comma Operator</h4>
Comma operators are used to link related expressions together. For example:<br />
<pre>int a,c=5,d;</pre>
<h4>
The sizeof operator</h4>
It is a unary operator which is used in finding the size of data type, constant, arrays, structure etc. For example:<br />
<pre class="prettyprint"><code><span class="pln">
</span><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> a</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">float</span><span class="pln"> b</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">double</span><span class="pln"> c</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">char</span><span class="pln"> d</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of int=%d bytes\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">a</span><span class="pun">));</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of float=%d bytes\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">b</span><span class="pun">));</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of double=%d bytes\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">c</span><span class="pun">));</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of char=%d byte\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">d</span><span class="pun">));</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span></code></pre>
<b>Output</b><br />
<pre><samp>Size of int=4 bytes
Size of float=4 bytes
Size of double=8 bytes
Size of char=1 byte
</samp></pre>
<h3>
Conditional operators (?:)</h3>
Conditional operators are used in decision making in C programming,
i.e, executes different statements according to test condition whether
it is either true or false.<br />
<h4>
Syntax of conditional operators</h4>
<pre>conditional_expression?expression1:expression2</pre>
If the test condition is true, <code>expression1</code> is returned and if false <code>expression2</code> is returned.<br />
<h4>
Example of conditional operator</h4>
<pre class="prettyprint"><code><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">char</span><span class="pln"> feb</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> days</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Enter l if the year is leap year otherwise enter 0: "</span><span class="pun">);</span><span class="pln">
scanf</span><span class="pun">(</span><span class="str">"%c"</span><span class="pun">,&</span><span class="pln">feb</span><span class="pun">);</span><span class="pln">
days</span><span class="pun">=(</span><span class="pln">feb</span><span class="pun">==</span><span class="str">'l'</span><span class="pun">)?</span><span class="lit">29</span><span class="pun">:</span><span class="lit">28</span><span class="pun">;</span><span class="pln">
</span><span class="com">/*If test condition (feb=='l') is true, days will be equal to 29. */</span><span class="pln">
</span><span class="com">/*If test condition (feb=='l') is false, days will be equal to 28. */</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Number of days in February = %d"</span><span class="pun">,</span><span class="pln">days</span><span class="pun">);</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span></code></pre>
<b>Output</b><br />
<pre><samp>Enter l if the year is leap year otherwise enter n: l
Number of days in February = 29</samp></pre>
Other operators such as
&(reference operator), *(dereference operator) and ->(member
selection) operator will be discussed in <a href="http://www.programiz.com/c-programming/c-pointers">pointer chapter</a>.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
- See more at: http://www.programiz.com/c-programming/c-operators#relational</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-10042418899376234802013-08-07T01:08:00.004-07:002013-08-07T01:08:47.756-07:00C Programming Operators <div dir="ltr" style="text-align: left;" trbidi="on">
<div id="stcpDiv" style="left: -1988px; position: absolute; top: -1999px;">
<h1 class="title" id="page-title">
C Programming Operators </h1>
<div class="tabs">
</div>
<div class="content-middle">
<div class="region region-content">
<div class="block block-system" id="block-system-main">
<div class="content">
<div class="node node-c-programming node-promoted clearfix" id="node-46">
<div class="content clearfix">
<div class="field field-name-body field-type-text-with-summary field-label-hidden">
<div class="field-items">
<div class="field-item even">
Operators are the symbol which operates on value or a variable. For example: <var>+</var> is a operator to perform addition.<br />
C programming language has wide range of operators to perform various
operations. For better understanding of operators, these operators can
be classified as:<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="Types of operators in C programming Language.">
<tbody>
<tr>
<th>Operators in C programming</th>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#arithmetic">Arithmetic Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#increment">Increment and Decrement Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#assignment">Assignment Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#relational">Relational Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#logical">Logical Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#conditional">Conditional Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#bitwise">Bitwise Operators</a></td>
</tr>
<tr>
<td><a href="http://www.programiz.com/c-programming/c-operators#other">Special Operators</a></td>
</tr>
</tbody>
</table>
<h3>
<a href="https://www.blogger.com/null" name="arithmetic"></a>Arithmetic Operators</h3>
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="List of all arithmetic operators in C programming.">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Meaning of Operator</th>
</tr>
</thead>
<tbody>
<tr>
<td>+</td>
<td>addition or unary plus</td>
</tr>
<tr>
<td>-</td>
<td>subtraction or unary minus</td>
</tr>
<tr>
<td>*</td>
<td>multiplication</td>
</tr>
<tr>
<td>/</td>
<td>division</td>
</tr>
<tr>
<td>%</td>
<td>remainder after division( modulo division)</td>
</tr>
</tbody>
</table>
Example of working of arithmetic operators<br />
<pre class="prettyprint"><code><span class="pln">
</span><span class="com">/* Program to demonstrate the working of arithmetic operators in C. */</span><span class="pln">
</span><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> a</span><span class="pun">=</span><span class="lit">9</span><span class="pun">,</span><span class="pln">b</span><span class="pun">=</span><span class="lit">4</span><span class="pun">,</span><span class="pln">c</span><span class="pun">;</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">+</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a+b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">-</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a-b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">*</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a*b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">/</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"a/b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
c</span><span class="pun">=</span><span class="pln">a</span><span class="pun">%</span><span class="pln">b</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Remainder when a divided by b=%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">);</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span><span class="pun">}</span></code></pre>
<pre><samp>a+b=13
a-b=5
a*b=36
a/b=2
Remainder when a divided by b=1</samp></pre>
<b>Explanation</b><br />
Here, the operators +, - and * performed normally as you expected. In normal calculation, <code>9/4</code>
equals to 2.25. But, the output is 2 in this program. It is because, a
and b are both integers. So, the output is also integer and the compiler
neglects the term after decimal point and shows answer 2 instead of
2.25. And, finally <code>a%b</code> is 1,i.e. ,when <code>a=9</code> is divided by <code>b=4</code>, remainder is 1.<br />
<pre>Suppose a=5.0, b=2.0, c=5 and d=2
In C programming,
a/b=2.5
a/d=2.5
c/b=2.5
c/d=2
</pre>
<div class="note">
<b>Note:</b> % operator can only be used with integers.</div>
<h3>
<a href="https://www.blogger.com/null" name="increment"></a>Increment and decrement operators</h3>
In C, <code>++</code> and <code>--</code> are called increment and
decrement operators respectively. Both of these operators are unary
operators, i.e, used on single operand. <code>++</code> adds 1 to operand and <code>--</code> subtracts 1 to operand respectively. For example:<br />
<pre>Let a=5 and b=10
a++; //a becomes 6
a--; //a becomes 5
++a; //a becomes 6
--a; //a becomes 5
</pre>
<a href="http://www.programiz.com/article/increment-decrement-operator-difference-prefix-postfix" title="increment and decrement operator detail"><strong>Difference between ++ and -- operator as postfix and prefix</strong></a><br />
When <code>i++</code> is used as prefix(like: <code>++var</code>), <code>++var</code> will increment the value of <var>var</var> and then return it but, if <code>++</code>
is used as postfix(like: var++), operator will return the value of
operand first and then only increment it. This can be demonstrated by an
example:<br />
<pre class="prettyprint"><code><span class="pln">
</span><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> c</span><span class="pun">=</span><span class="lit">2</span><span class="pun">,</span><span class="pln">d</span><span class="pun">=</span><span class="lit">2</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"%d\n"</span><span class="pun">,</span><span class="pln">c</span><span class="pun">++);</span><span class="pln"> </span><span class="com">//this statement displays 2 then, only c incremented by 1 to 3.</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"%d"</span><span class="pun">,++</span><span class="pln">c</span><span class="pun">);</span><span class="pln"> </span><span class="com">//this statement increments 1 to c then, only c is displayed. </span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span><span class="pln">
</span></code>
</pre>
<b>Output</b><br />
<pre><samp>2
4
</samp></pre>
<h3>
<a href="https://www.blogger.com/null" name="assignment"></a>Assignment Operators</h3>
The most common assignment operator is <code>=</code>. This operator assigns the value in right side to the left side. For example:<br />
<pre>var=5 //5 is assigned to var
a=c; //value of c is assigned to a
5=c; // Error! 5 is a constant.
</pre>
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="List of all assignment operators in C programming">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Example</th>
<th scope="col">Same as</th>
</tr>
</thead>
<tbody>
<tr>
<td>=</td>
<td>a=b</td>
<td>a=b</td>
</tr>
<tr>
<td>+=</td>
<td>a+=b</td>
<td>a=a+b</td>
</tr>
<tr>
<td>-=</td>
<td>a-=b</td>
<td>a=a-b</td>
</tr>
<tr>
<td>*=</td>
<td>a*=b</td>
<td>a=a*b</td>
</tr>
<tr>
<td>/=</td>
<td>a/=b</td>
<td>a=a/b</td>
</tr>
<tr>
<td>%=</td>
<td>a%=b</td>
<td>a=a%b</td>
</tr>
</tbody>
</table>
<h3>
<a href="https://www.blogger.com/null" name="relational"></a>Relational Operator</h3>
Relational operators checks relationship between two operands. If the
relation is true, it returns value 1 and if the relation is false, it
returns value 0. For example:<br />
<pre>a>b
</pre>
Here, <code>></code> is a relational operator. If <var>a</var> is greater than <var>b</var>, <var>a>b</var> returns 1 if not then, it returns 0.<br />
Relational operators are used in decision making and loops in C programming.<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="List of all relational operators in C.">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Meaning of Operator</th>
<th scope="col">Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>==</td>
<td>Equal to</td>
<td>5==3 returns false (0)</td>
</tr>
<tr>
<td>></td>
<td>Greater than</td>
<td>5>3 returns true (1)</td>
</tr>
<tr>
<td><</td>
<td>Less than</td>
<td>5<3 returns false (0)</td>
</tr>
<tr>
<td>!=</td>
<td>Not equal to</td>
<td>5!=3 returns true(1)</td>
</tr>
<tr>
<td>>=</td>
<td>Greater than or equal to</td>
<td>5>=3 returns true (1)</td>
</tr>
<tr>
<td><=</td>
<td>Less than or equal to</td>
<td>5<=3 return false (0)</td>
</tr>
</tbody>
</table>
<h3>
<a href="https://www.blogger.com/null" name="logical"></a>Logical Operators</h3>
Logical operators are used to combine expressions containing relation operators. In C, there are 3 logical operators:<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="Logical Operators in C programming">
<thead>
<tr>
<th scope="col">Operator</th>
<th scope="col">Meaning of Operator</th>
<th scope="col">Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>&&</td>
<td>Logial AND </td>
<td>If c=5 and d=2 then,((c==5) && (d>5)) returns false.</td>
</tr>
<tr>
<td>||</td>
<td>Logical OR</td>
<td>If c=5 and d=2 then, ((c==5) || (d>5)) returns true.</td>
</tr>
<tr>
<td>!</td>
<td>Logical NOT</td>
<td>If c=5 then, !(c==5) returns false.</td>
</tr>
</tbody>
</table>
<b>Explanation</b><br />
For expression, <var>((c==5) && (d>5))</var> to be true, both <var>c==5</var> and <var>d>5</var> should be true but, (d>5) is false in the given example. So, the expression is false. For expression <code>((c==5) || (d>5))</code> to be true, either the expression should be true. Since, <code>(c==5)</code> is true. So, the expression is true. Since, expression <code>(c==5)</code> is true, <code>!(c==5)</code> is false.<br />
<h3>
<a href="https://www.blogger.com/null" name="conditional"></a>Conditional Operator</h3>
Conditional operator takes three operands and consists of two symbols
? and : . Conditional operators are used for decision making in C. For
example:<br />
<pre>c=(c>0)?10:-10;
</pre>
If <var>c</var> is greater than 0, value of <var>c</var> will be 10 but, if <var>c</var> is less than 0, value of <var>c</var> will be -10.<br />
<h3>
<a href="https://www.blogger.com/null" name="bitwise"></a>Bitwise Operators</h3>
A bitwise operator works on each bit of data. Bitwise operators are used in bit level programming.<br />
<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;" summary="Bitwise operators in C">
<thead>
<tr>
<th scope="col">Operators</th>
<th scope="col">Meaning of operators</th>
</tr>
</thead>
<tbody>
<tr>
<td>&</td>
<td>Bitwise AND</td>
</tr>
<tr>
<td>|</td>
<td>Bitwise OR</td>
</tr>
<tr>
<td>^</td>
<td>Bitwise exclusive OR</td>
</tr>
<tr>
<td>~</td>
<td>Bitwise complement</td>
</tr>
<tr>
<td><<</td>
<td>Shift left</td>
</tr>
<tr>
<td>>></td>
<td>Shift right</td>
</tr>
</tbody>
</table>
Bitwise operator is advance topic in programming . Learn more about <a href="http://www.programiz.com/article/bitwise-operator-c-programming" title="Bitwise operators">bitwise operator in C programming</a>.<br />
<h3>
<a href="https://www.blogger.com/null" name="other"></a>Other Operators</h3>
<h4>
Comma Operator</h4>
Comma operators are used to link related expressions together. For example:<br />
<pre>int a,c=5,d;</pre>
<h4>
The sizeof operator</h4>
It is a unary operator which is used in finding the size of data type, constant, arrays, structure etc. For example:<br />
<pre class="prettyprint"><code><span class="pln">
</span><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> a</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">float</span><span class="pln"> b</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">double</span><span class="pln"> c</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">char</span><span class="pln"> d</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of int=%d bytes\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">a</span><span class="pun">));</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of float=%d bytes\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">b</span><span class="pun">));</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of double=%d bytes\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">c</span><span class="pun">));</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Size of char=%d byte\n"</span><span class="pun">,</span><span class="kwd">sizeof</span><span class="pun">(</span><span class="pln">d</span><span class="pun">));</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span></code></pre>
<b>Output</b><br />
<pre><samp>Size of int=4 bytes
Size of float=4 bytes
Size of double=8 bytes
Size of char=1 byte
</samp></pre>
<h3>
Conditional operators (?:)</h3>
Conditional operators are used in decision making in C programming,
i.e, executes different statements according to test condition whether
it is either true or false.<br />
<h4>
Syntax of conditional operators</h4>
<pre>conditional_expression?expression1:expression2</pre>
If the test condition is true, <code>expression1</code> is returned and if false <code>expression2</code> is returned.<br />
<h4>
Example of conditional operator</h4>
<pre class="prettyprint"><code><span class="com">#include</span><span class="pln"> </span><span class="str"><stdio.h></span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> main</span><span class="pun">(){</span><span class="pln">
</span><span class="kwd">char</span><span class="pln"> feb</span><span class="pun">;</span><span class="pln">
</span><span class="kwd">int</span><span class="pln"> days</span><span class="pun">;</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Enter l if the year is leap year otherwise enter 0: "</span><span class="pun">);</span><span class="pln">
scanf</span><span class="pun">(</span><span class="str">"%c"</span><span class="pun">,&</span><span class="pln">feb</span><span class="pun">);</span><span class="pln">
days</span><span class="pun">=(</span><span class="pln">feb</span><span class="pun">==</span><span class="str">'l'</span><span class="pun">)?</span><span class="lit">29</span><span class="pun">:</span><span class="lit">28</span><span class="pun">;</span><span class="pln">
</span><span class="com">/*If test condition (feb=='l') is true, days will be equal to 29. */</span><span class="pln">
</span><span class="com">/*If test condition (feb=='l') is false, days will be equal to 28. */</span><span class="pln">
printf</span><span class="pun">(</span><span class="str">"Number of days in February = %d"</span><span class="pun">,</span><span class="pln">days</span><span class="pun">);</span><span class="pln">
</span><span class="kwd">return</span><span class="pln"> </span><span class="lit">0</span><span class="pun">;</span><span class="pln">
</span><span class="pun">}</span></code></pre>
<b>Output</b><br />
<pre><samp>Enter l if the year is leap year otherwise enter n: l
Number of days in February = 29</samp></pre>
Other operators such as
&(reference operator), *(dereference operator) and ->(member
selection) operator will be discussed in <a href="http://www.programiz.com/c-programming/c-pointers">pointer chapter</a>.</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
- See more at: http://www.programiz.com/c-programming/c-operators#sthash.msZD8gIb.dpuf</div>
<div id="stcpDiv" style="left: -1988px; position: absolute; top: -1999px;">
C Programming Operators </div>
<div id="stcpDiv" style="left: -1988px; position: absolute; top: -1999px;">
C Programming Operators </div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-21338593857007541182013-08-06T05:13:00.001-07:002013-08-06T05:13:44.449-07:00C Program Links <div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px;">C Programs Source Code</span><br />
<span style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px;"><br /></span>
<a href="http://cbasicprogram.blogspot.in/">http://cbasicprogram.blogspot.in/</a><br />
<div class="post-header" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 11px; line-height: 1.6; margin: 0px 0px 1.5em;">
<div class="post-header-line-1">
</div>
</div>
<div class="post-body entry-content" id="post-body-4917852239430705235" style="background-color: white; color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.4; position: relative; width: 690px;">
<ins style="border: none; display: inline-table; height: 15px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 728px;"><ins id="aswift_1_anchor" style="border: none; display: block; height: 15px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 728px;"><iframe allowtransparency="true" frameborder="0" height="15" hspace="0" id="aswift_1" marginheight="0" marginwidth="0" name="aswift_1" scrolling="no" style="left: 0px; position: absolute; top: 0px;" vspace="0" width="728"></iframe></ins></ins><div dir="ltr" trbidi="on">
<div dir="ltr" trbidi="on">
<table border="1"><tbody>
<tr><td><b> Basic Programs</b></td><td><b> Conditional Programs</b></td></tr>
<tr><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/sum-of-two-variable-c-program.html" style="color: #cc6611; text-decoration: none;">Sum of two numbers</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/calculate-simple-interest-c-program.html" style="color: #cc6611; text-decoration: none;">Calculate Simple Interest</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/convert-km-to-meter-centimeter-or.html" style="color: #cc6611; text-decoration: none;">Convert Km to Meter</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/swap-values-of-two-variables-c-program.html" style="color: #cc6611; text-decoration: none;">Swap two Variables</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/swap-two-values-without-using-third.html" style="color: #cc6611; text-decoration: none;">Swap two values without 3rd variable</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/swap-two-variables-using-xor.html" style="color: #cc6611; text-decoration: none;">Swap two values using XOR</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/convert-meter-to-feet-c-program.html" style="color: #cc6611; text-decoration: none;">Convert meter to feet</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/convert-feet-to-meter.html" style="color: #cc6611; text-decoration: none;">Convert feet to meter</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/convert-celcius-to-farenheit-c-program.html" style="color: #cc6611; text-decoration: none;">Convert celcius to farenheit</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/convert-farenheit-to-celcius.html" style="color: #cc6611; text-decoration: none;">Convert farenheit to celcius</a> </li>
</ul>
</td><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/find-larger-value-between-two-variable.html" style="color: #cc6611; text-decoration: none;">Larger between two variable</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/largest-value-of-two-variables.html" style="color: #cc6611; text-decoration: none;">Largest using Conditional Operator</a><a href="http://www.blogger.com/blogger.g?blogID=5571795200996649673" style="color: #cc6611; text-decoration: none;"></a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/02/largest-value-among-three-variables.html" style="color: #cc6611; text-decoration: none;">Largest value among 3 variables</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/02/largest-among-3-variables-using-nested.html" style="color: #cc6611; text-decoration: none;">Largest among 3 using nested if</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/01/find-largest-value-among-three-variable.html" style="color: #cc6611; text-decoration: none;">Largest value among 3 conditional</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/02/leap-year.html" style="color: #cc6611; text-decoration: none;">Leap Year</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/02/even-odd-number.html" style="color: #cc6611; text-decoration: none;">Even Odd Number</a></li>
</ul>
</td></tr>
<tr><td><b> Loop Programs</b></td><td><b> Array Programs</b></td></tr>
<tr><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/print-1-to-10.html" style="color: #cc6611; text-decoration: none;">Print 1 to 10</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/factorial.html" style="color: #cc6611; text-decoration: none;">Factorial</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/power.html" style="color: #cc6611; text-decoration: none;">Power</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/sum-of-digits.html" style="color: #cc6611; text-decoration: none;">Sum of Digits</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/reverse-number.html" style="color: #cc6611; text-decoration: none;">Reverse a Number</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/palindrome-number.html" style="color: #cc6611; text-decoration: none;">Palindrome Number</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/fibonacci-series.html" style="color: #cc6611; text-decoration: none;">Fibonacci Series</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/prime-number.html" style="color: #cc6611; text-decoration: none;">Prime Number</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/check-armstrong-number.html" style="color: #cc6611; text-decoration: none;">Check Armstrong Number</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/print-armstrong-numbers-upto-n.html" style="color: #cc6611; text-decoration: none;">Armstrong Number upto N</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/compound-interest.html" style="color: #cc6611; text-decoration: none;">Compound Interest</a></li>
</ul>
</td><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/maximum-value-of-array.html" style="color: #cc6611; text-decoration: none;">Maximum value of Array</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/minimum-value-of-array.html" style="color: #cc6611; text-decoration: none;">Minimum value of Array</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/linear-search-in-array.html" style="color: #cc6611; text-decoration: none;">Linear Search</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/binary-search.html" style="color: #cc6611; text-decoration: none;">Binary Search</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/bubble-sort.html" style="color: #cc6611; text-decoration: none;">Bubble Sort</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/selection-sort.html" style="color: #cc6611; text-decoration: none;">Selection Sort</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/insertion-sort.html" style="color: #cc6611; text-decoration: none;">Insertion Sort</a></li>
</ul>
</td></tr>
<tr><td><b> Matrix Programs</b></td><td><b> Pattern Programs</b></td></tr>
<tr><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/sum-of-two-matrix.html" style="color: #cc6611; text-decoration: none;">Sum of two Matrix</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/matrix-transpose.html" style="color: #cc6611; text-decoration: none;">Matrix Transpose</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/matrix-multiplication.html" style="color: #cc6611; text-decoration: none;">Matrix Multiplication</a></li>
</ul>
</td><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/03/star-patterns.html" style="color: #cc6611; text-decoration: none;">Star Patterns</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/04/number-patterns.html" style="color: #cc6611; text-decoration: none;">Number Patterns</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2013/03/alphabet-patterns.html" style="color: #cc6611; text-decoration: none;">Alphabet Patterns</a></li>
</ul>
</td></tr>
<tr><td><b> String Programs</b></td><td><b> Recursion</b></td></tr>
<tr><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-length-strlen.html" style="color: #cc6611; text-decoration: none;">String Length - STRLEN</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-to-upper-case-strupr.html" style="color: #cc6611; text-decoration: none;">String to Upper Case - STRUPR</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-to-lower-case-strlwr.html" style="color: #cc6611; text-decoration: none;">String to Lower Case - STRLWR</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/toggle-case-of-string.html" style="color: #cc6611; text-decoration: none;">Toggle case of String</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-compare-strcmp.html" style="color: #cc6611; text-decoration: none;">String Compare - STRCMP</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-compare-ignore-case-stricmp.html" style="color: #cc6611; text-decoration: none;">String Compare ignore case - STRICMP</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-reverse-strrev.html" style="color: #cc6611; text-decoration: none;">String Reverse - STRREV</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/string-concatenation-strcat.html" style="color: #cc6611; text-decoration: none;">String Concatenation - STRCAT</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/locate-character-in-string-strchr.html" style="color: #cc6611; text-decoration: none;">Locate character in string - STRCHR</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/locate-word-in-string-strstr.html" style="color: #cc6611; text-decoration: none;">Locate word in string - STRSTR</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/sort-array-of-10-strings.html" style="color: #cc6611; text-decoration: none;">Sort array of 10 strings</a></li>
</ul>
</td><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/factorial-by-recursion.html" style="color: #cc6611; text-decoration: none;">Factorial by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/power-by-recursion.html" style="color: #cc6611; text-decoration: none;">Power by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/fibonacci-by-recursion.html" style="color: #cc6611; text-decoration: none;">Fibonacci Number by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/reverse-by-recursion.html" style="color: #cc6611; text-decoration: none;">Reverse a Number by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/sum-of-digit-by-recursion.html" style="color: #cc6611; text-decoration: none;">Sum of Digits by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/gcd-by-recursion.html" style="color: #cc6611; text-decoration: none;">GCD by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/binary-by-recursion.html" style="color: #cc6611; text-decoration: none;">Decimal to Binary by Recursion</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/towers-of-hanoi-by-recursion.html" style="color: #cc6611; text-decoration: none;">Tower of Hanoi by Recursion</a></li>
</ul>
</td></tr>
<tr><td><b> File handling</b></td><td><b> </b></td></tr>
<tr><td align="left" valign="top"><ul style="line-height: 1.4; margin: 0.5em 0px; padding: 0px 2.5em;">
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/read-text-file.html" style="color: #cc6611; text-decoration: none;">Read text file</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/write-to-text-file.html" style="color: #cc6611; text-decoration: none;">Write to text file</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/count-characters-of-file.html" style="color: #cc6611; text-decoration: none;">Count characters of file</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/file-to-upper-case.html" style="color: #cc6611; text-decoration: none;">File to upper case</a></li>
<li style="margin: 0px 0px 0.25em; padding: 0px;" type="square"><a href="http://cbasicprogram.blogspot.in/2012/05/file-copy-using-command-line-arguments.html" style="color: #cc6611; text-decoration: none;">File Copy - Command Line Agruments</a></li>
</ul>
</td><td align="left" valign="top"><br /></td></tr>
</tbody></table>
</div>
</div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-56517886901292519732013-08-06T05:03:00.002-07:002013-08-06T05:03:58.439-07:00c-tutorial<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="http://cprogrammingcodes.blogspot.in/p/c-tutorial.html">http://cprogrammingcodes.blogspot.in/p/c-tutorial.html</a></div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-50536981497189537502013-08-06T04:43:00.002-07:002013-08-06T04:43:46.871-07:00C Programming Links<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoPlainText">
<span style="font-family: "Courier New";">C Programming
Links<o:p></o:p></span></div>
<div class="MsoPlainText">
<br /></div>
<div class="MsoPlainText">
<span style="font-family: "Courier New";">http://forgetprograms.blogspot.in/2012/05/c-hello-world-program.html<o:p></o:p></span></div>
<div class="MsoPlainText">
<br /></div>
<div class="MsoPlainText">
<span style="font-family: "Courier New";">http://www.programiz.com/c-programming<o:p></o:p></span></div>
<div class="MsoPlainText">
<span style="font-family: "Courier New";">http://fresh2refresh.com/<o:p></o:p></span></div>
<div class="MsoPlainText">
<span style="font-family: "Courier New";">http://studytipsandtricks.blogspot.in/<o:p></o:p></span></div>
<div class="MsoPlainText">
<span style="font-family: "Courier New";">http://c4learn.com/c-programs/<o:p></o:p></span></div>
<br />
<div class="MsoPlainText">
<span style="font-family: "Courier New";">www.cppforschool.com<o:p></o:p></span></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-14886520580295921892013-07-23T03:52:00.001-07:002013-07-23T03:53:04.682-07:00Insert, Delete, Update in GridView in ASP.Net using C#<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #17365d; font-family: Cambria, serif; font-size: 35px;">Insert, Delete, Update in GridView in ASP.Net using C#</span><br />
<span style="background-color: white; color: #17365d; font-family: Cambria, serif; font-size: 35px;"><br /></span>
<table cellpadding="0" cellspacing="0" style="color: black; font-family: Calibri, CalibriMind; font-size: small; width: 100%px;"><tbody>
<tr style="width: 912px;"><td style="width: 912px;"><div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
SP.NET <b>GridView</b> is a very common and useful control. Here, I’m explaining how to work with <b>GridView</b> control in <span class="search-highlight">ASP.NET</span>, like how to insert, delete and update record in <b>GridView </b>control. Follow bellow steps to know how to work with <b>GridView</b> in ASP.NET.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 1:-</span></span> Create Database in <b>SqlServer</b> and create a table within this database. For demonstration here I have created database named <b>“Demo”</b> and table named “<b><i>GridView”<o:p></o:p></i></b></div>
<table border="1" cellpadding="0" cellspacing="0" class="style3" style="border-collapse: collapse; border: 1pt solid windowtext; font-family: Calibri, sans-serif; font-size: 11pt;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
CREATE DATABASE <span style="color: teal;">DEMO</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GO<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
USE <span style="color: teal;">DEMO</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GO<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
CREATE TABLE <span style="color: teal;">GridView</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">(</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">id</span> INT PRIMARY KEY IDENTITY<span style="color: grey;">,</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">name</span> VARCHAR <span style="color: grey;">(</span>50<span style="color: grey;">)</span> <span style="color: grey;">NOT</span> <span style="color: grey;">NULL,</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">age</span> INT <span style="color: grey;">NOT</span> <span style="color: grey;">NULL,</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">salary</span> FLOAT <span style="color: grey;">NOT</span> <span style="color: grey;">NULL,</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">country</span> VARCHAR<span style="color: grey;">(</span>50<span style="color: grey;">)</span> <span style="color: grey;">NOT</span> <span style="color: grey;">NULL,</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">city</span> VARCHAR<span style="color: grey;">(</span>50<span style="color: grey;">)</span> <span style="color: grey;">NOT</span> <span style="color: grey;">NULL,</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: teal;">photopath</span> VARCHAR<span style="color: grey;">(</span>500<span style="color: grey;">)</span> <span style="color: grey;">NULL</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">)</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GO<o:p></o:p></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<br /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image002.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Note:</span></span> Here <b>“id” </b>column<b> </b>is <b>auto increment</b> and <b>primary key</b>. <o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 2:-</span></span> Add connection string in your application’s <b><i>web.config</i></b> file and change <b>name</b> and <b>connectionString </b>according your SQL Server configuration as following.<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="style3" style="border-collapse: collapse; border: 1pt solid windowtext; font-family: Calibri, sans-serif; font-size: 11pt;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<configuration><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<connectionStrings><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<add name="dbconnection" providerName="System.Data.SqlClient"<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
connectionString="Data Source=.;Initial Catalog=demo; User Id=xyz; password=123456" /><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
</connectionStrings><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
</configuration><o:p></o:p></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<br /></div>
<div class="MsoNoSpacing" style="font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt;">Step 3:- </span></span>Drag & drop <b>GridView </b>control<b> </b>from Toolbox<b> </b>on “.<b><i>aspx”</i></b><i> </i>page and write down the following line of code within <asp:GridView> section or simple copy the following line of code and put where you want to display <b>GridVIew</b>.<o:p></o:p></div>
<div class="MsoNoSpacing" style="font-family: Calibri, sans-serif; font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<table border="1" cellpadding="0" cellspacing="0" class="style3" style="border-collapse: collapse; border: 1pt solid windowtext; font-family: Calibri, sans-serif; font-size: 11pt;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>div<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>GridView <span style="color: red;">ID</span><span style="color: blue;">="GridView1"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">ShowHeaderWhenEmpty</span><span style="color: blue;">="True"</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: red;">AutoGenerateColumns</span><span style="color: blue;">="False"</span> <span style="color: red;">onrowdeleting</span><span style="color: blue;">="RowDeleting"</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: red;">OnRowCancelingEdit</span><span style="color: blue;">="cancelRecord"</span> <span style="color: red;">OnRowEditing</span><span style="color: blue;">="editRecord"</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: red;">OnRowUpdating</span><span style="color: blue;">="updateRecord"</span> <span style="color: red;">CellPadding</span><span style="color: blue;">="4"</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: red;">EnableModelValidation</span><span style="color: blue;">="True"</span> <span style="color: red;">GridLines</span><span style="color: blue;">="None"</span> <span style="color: red;">Width</span><span style="color: blue;">="1297px"</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: red;">ForeColor</span><span style="color: blue;">="#333333"</span> <span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>RowStyle <span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>AlternatingRowStyle <span style="color: red;">BackColor</span><span style="color: blue;">="White"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditRowStyle <span style="color: red;">BackColor</span><span style="color: blue;">="#7C6F57"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterStyle <span style="color: red;">BackColor</span><span style="color: blue;">="#1C5E55"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span> <span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderStyle <span style="color: red;">BackColor</span><span style="color: blue;">="#1C5E55"</span> <span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>PagerStyle <span style="color: red;">BackColor</span><span style="color: blue;">="#666666"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="White"</span> <span style="color: red;">HorizontalAlign</span><span style="color: blue;">="Center"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>RowStyle <span style="color: red;">BackColor</span><span style="color: blue;">="#E3EAEB"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>SelectedRowStyle <span style="color: red;">BackColor</span><span style="color: blue;">="#C5BBAF"</span> <span style="color: red;">Font-Bold</span><span style="color: blue;">="True"</span> <span style="color: red;">ForeColor</span><span style="color: blue;">="#333333"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>Columns<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Id<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Label <span style="color: red;">ID</span> <span style="color: blue;">="lblId"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("id")<span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'></</span>asp<span style="color: blue;">:</span>Label<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Name<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Label <span style="color: red;">ID</span> <span style="color: blue;">="lblName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("name") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'></</span>asp<span style="color: blue;">:</span>Label<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("name") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="50"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter name"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtName"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revtxtName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter alphabate "</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtName"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="^[a-zA-Z'.\s]{1,40}$"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtNewName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="50"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtNewName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter name"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewName"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revtxtNewName"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter alphabate "</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewName"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="^[a-zA-Z'.\s]{1,40}$"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Age<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Label <span style="color: red;">ID</span><span style="color: blue;">="lblAge"</span> <span style="color: red;">runat</span> <span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("age") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'></</span>asp<span style="color: blue;">:</span>Label<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span> <span style="color: blue;">="txtAge"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("age") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="2"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtAge"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter age"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtAge"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revtxtAge"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter numeric value"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtAge"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="^[0-9]+$"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtNewAge"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="2"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtNewAge"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter age"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewAge"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revNewtxtAge"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter numeric value"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewAge"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="^[0-9]+$"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Salary<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Label <span style="color: red;">ID</span> <span style="color: blue;">=</span> <span style="color: blue;">"lblSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("salary") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'></</span>asp<span style="color: blue;">:</span>Label<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("salary") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="10"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter salary"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtSalary"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revtxtSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter numeric value"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtSalary"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="^[0-9]+$"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtNewSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="10"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtNewSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter salary"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewSalary"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revtxtNewSalary"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter numeric value"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewSalary"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="^[0-9]+$"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Country<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Label <span style="color: red;">ID</span> <span style="color: blue;">=</span> <span style="color: blue;">"lblCountry"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("country") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'></</span>asp<span style="color: blue;">:</span>Label<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtCountry"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("country") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="20"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtCountry"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter country"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtCountry"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtNewCountry"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="20"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtNewCountry"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter country"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewCountry"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>City<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Label <span style="color: red;">ID</span> <span style="color: blue;">=</span> <span style="color: blue;">"lblCity"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("city") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'></</span>asp<span style="color: blue;">:</span>Label<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtCity"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("city") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="20"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtCity"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter city"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtCity"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TextBox <span style="color: red;">ID</span><span style="color: blue;">="txtNewCity"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">MaxLength</span><span style="color: blue;">="20"></</span>asp<span style="color: blue;">:</span>TextBox<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvtxtNewCity"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Enter city"</span><span style="color: red;">ControlToValidate</span><span style="color: blue;">="txtNewCity"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Photo<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Image <span style="color: red;">ID</span><span style="color: blue;">="imgPhoto"</span> <span style="color: red;">Width</span><span style="color: blue;">="100px"</span> <span style="color: red;">Height</span><span style="color: blue;">="100px"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">text</span><span style="color: blue;">="Photo"</span><span style="color: red;">ImageUrl</span><span style="color: blue;">='</span><span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;"><%</span><span style="color: blue;">#</span>Bind("photopath") <span style="background-color: yellow; background-position: initial initial; background-repeat: initial initial;">%></span><span style="color: blue;">'</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>FileUpload <span style="color: red;">ID</span><span style="color: blue;">="fuPhoto"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="select Employee Photo"/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revfuPhoto"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Image formate only"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="fuPhoto"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="[a-zA-Z0_9].*\b(.jpeg|.JPEG|.jpg|.JPG|.jpe|.JPE|.png|.PNG|.mpp|.MPP|.gif|.GIF)\b"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>FileUpload <span style="color: red;">ID</span><span style="color: blue;">="fuNewPhoto"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="select Employee Photo"/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RequiredFieldValidator <span style="color: red;">ID</span><span style="color: blue;">="rfvfuNewPhoto"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">ErrorMessage</span><span style="color: blue;">="*"</span><span style="color: red;">ToolTip</span><span style="color: blue;">="Select Photo"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="fuNewPhoto"></</span>asp<span style="color: blue;">:</span>RequiredFieldValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>RegularExpressionValidator <span style="color: red;">ID</span><span style="color: blue;">="revfuNewPhoto"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="*"</span> <span style="color: red;">ToolTip</span><span style="color: blue;">="Image formate only"</span> <span style="color: red;">ControlToValidate</span><span style="color: blue;">="fuNewPhoto"</span> <span style="color: red;">ValidationExpression</span><span style="color: blue;">="[a-zA-Z0_9].*\b(.jpeg|.JPEG|.jpg|.JPG|.jpe|.JPE|.png|.PNG|.mpp|.MPP|.gif|.GIF)\b"></</span>asp<span style="color: blue;">:</span>RegularExpressionValidator<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>HeaderTemplate<span style="color: blue;">></span>Operation<span style="color: blue;"></</span>HeaderTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnEdit"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">CommandName</span><span style="color: blue;">="Edit"</span> <span style="color: red;">Text</span><span style="color: blue;">="Edit"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnDelete"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">CommandName</span><span style="color: blue;">="Delete"</span> <span style="color: red;">Text</span><span style="color: blue;">="Delete"</span><span style="color: red;">CausesValidation</span><span style="color: blue;">="true"</span> <span style="color: red;">OnClientClick</span><span style="color: blue;">="return confirm('Are you sure?')"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>ItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnUpdate"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">CommandName</span><span style="color: blue;">="Update"</span> <span style="color: red;">Text</span><span style="color: blue;">="Update"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnCancel"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">CommandName</span><span style="color: blue;">="Cancel"</span> <span style="color: red;">Text</span><span style="color: blue;">="Cancel"</span><span style="color: red;">CausesValidation</span><span style="color: blue;">="false"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EditItemTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>FooterTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnNewInsert"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Insert"</span> <span style="color: red;">OnClick</span><span style="color: blue;">="InsertNewRecord"/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnNewCancel"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Cancel"</span> <span style="color: red;">OnClick</span><span style="color: blue;">="AddNewCancel"</span><span style="color: red;">CausesValidation</span><span style="color: blue;">="false"</span> <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>FooterTemplate<span style="color: blue;">></span> <o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>TemplateField<span style="color: blue;">></span> <o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>Columns<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>EmptyDataTemplate<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
No record available <o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>EmptyDataTemplate<span style="color: blue;">></span> <o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>asp<span style="color: blue;">:</span>GridView<span style="color: blue;">></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>br <span style="color: blue;">/></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"><</span>asp<span style="color: blue;">:</span>Button <span style="color: red;">ID</span><span style="color: blue;">="btnAdd"</span> <span style="color: red;">runat</span><span style="color: blue;">="server"</span> <span style="color: red;">Text</span><span style="color: blue;">="Add New Record"</span> <span style="color: red;">OnClick</span><span style="color: blue;">="AddNewRecord"</span> <span style="color: blue;">/></span> <o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;"></</span>div<span style="color: blue;">><o:p></o:p></span></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<br /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 4:-</span></span> Create one class within <b>App_Code </b>folder<b>. </b>Here I have given this class named is <b>GlobalClass </b>and write following line of code.<b><o:p></o:p></b></div>
<table border="1" cellpadding="0" cellspacing="0" class="style3" style="border-collapse: collapse; border: 1pt solid windowtext; font-family: Calibri, sans-serif; font-size: 11pt;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.Data;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.Data.SqlClient;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">public</span> <span style="color: blue;">class</span> <span style="color: #2b91af;">GlobalClass</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: #2b91af;">SqlDataAdapter</span> adap;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: #2b91af;">DataTable</span> dt;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: green;">// Stored image path before updating the record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">public</span> <span style="color: blue;">static</span> <span style="color: blue;">string</span> imgEditPath;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<br /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 5:-</span></span> Create one folder, named <b>Images, </b>where we have stored employees photos see in following image.<b><o:p></o:p></b></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image004.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 6:-</span></span> Write down following line of code in “.<b><i>cs</i></b><i>” </i>page which related to your <b>.aspx</b> page (e.g. if your .<b>aspx</b> page name is <b>default.aspx</b> then your .<b>cs</b>file is <b>default.aspx.cs</b>).<o:p></o:p></div>
<table border="1" cellpadding="0" cellspacing="0" class="style3" style="border-collapse: collapse; border: 1pt solid windowtext; font-family: Calibri, sans-serif; font-size: 11pt;"><tbody>
<tr><td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 6.65in;" valign="top" width="638"><div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.Data;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.Data.SqlClient;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.Configuration;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.Web.UI.WebControls;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">using</span> System.IO;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">public</span> <span style="color: blue;">partial</span> <span style="color: blue;">class</span> <span style="color: #2b91af;">_Default</span> : System.Web.UI.<span style="color: #2b91af;">Page</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> Page_Load(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">if</span> (!IsPostBack)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: green;">// Call FillGridView Method</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Fill record into GridView</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">public</span> <span style="color: blue;">void</span> FillGridView()<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">try</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">string</span> cnString = <span style="color: #2b91af;">ConfigurationManager</span>.ConnectionStrings[<span style="color: #a31515;">"dbconnection"</span>].ConnectionString;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">SqlConnection</span> con = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlConnection</span>(cnString);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.adap = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlDataAdapter</span>(<span style="color: #a31515;">"select * from gridview"</span>, con);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">SqlCommandBuilder</span> bui = <span style="color: blue;">new</span> <span style="color: #2b91af;">SqlCommandBuilder</span>(<span style="color: #2b91af;">GlobalClass</span>.adap);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt = <span style="color: blue;">new</span> <span style="color: #2b91af;">DataTable</span>();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.adap.Fill(<span style="color: #2b91af;">GlobalClass</span>.dt);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.DataSource = <span style="color: #2b91af;">GlobalClass</span>.dt;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.DataBind();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">catch</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
Response.Write(<span style="color: #a31515;">"<script> alert('Connection String Error...') </script>"</span>);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Edit record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> editRecord(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewEditEventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: green;">// Get the image path for remove old image after update record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">Image</span> imgEditPhoto = GridView1.Rows[e.NewEditIndex].FindControl(<span style="color: #a31515;">"imgPhoto"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">Image</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.imgEditPath = imgEditPhoto.ImageUrl;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: green;">// Get the current row index for edit record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.EditIndex = e.NewEditIndex;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Cancel the operation (e.g. edit)</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> cancelRecord(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewCancelEditEventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.EditIndex = -1;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Add new row into DataTable if no record found in Table</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> AddNewRecord(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">try</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">if</span> (<span style="color: #2b91af;">GlobalClass</span>.dt.Rows.Count > 0)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.EditIndex = -1;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.ShowFooter = <span style="color: blue;">true</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">else</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.ShowFooter = <span style="color: blue;">true</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">DataRow</span> dr = <span style="color: #2b91af;">GlobalClass</span>.dt.NewRow();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"name"</span>] = <span style="color: #a31515;">"0"</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"age"</span>] = 0;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"salary"</span>] = 0;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"country"</span>] = <span style="color: #a31515;">"0"</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"city"</span>] = <span style="color: #a31515;">"0"</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"photopath"</span>] = <span style="color: #a31515;">"0"</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows.Add(dr);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.DataSource = <span style="color: #2b91af;">GlobalClass</span>.dt;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.DataBind();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.Rows[0].Visible = <span style="color: blue;">false</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">catch</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
Response.Write(<span style="color: #a31515;">"<script> alert('Row not added in DataTable...') </script>"</span>);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Cancel new added record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> AddNewCancel(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.ShowFooter = <span style="color: blue;">false</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Insert New Record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> InsertNewRecord(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">EventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">try</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">string</span> strName = <span style="color: #2b91af;">GlobalClass</span>.dt.Rows[0][<span style="color: #a31515;">"name"</span>].ToString();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">if</span> (strName == <span style="color: #a31515;">"0"</span>)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[0].Delete();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.adap.Update(<span style="color: #2b91af;">GlobalClass</span>.dt);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtName = GridView1.FooterRow.FindControl(<span style="color: #a31515;">"txtNewName"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtAge = GridView1.FooterRow.FindControl(<span style="color: #a31515;">"txtNewAge"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtSalary = GridView1.FooterRow.FindControl(<span style="color: #a31515;">"txtNewSalary"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtCountry = GridView1.FooterRow.FindControl(<span style="color: #a31515;">"txtNewCountry"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtCity = GridView1.FooterRow.FindControl(<span style="color: #a31515;">"txtNewCity"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">FileUpload</span> fuPhoto = GridView1.FooterRow.FindControl(<span style="color: #a31515;">"fuNewPhoto"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">FileUpload</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">Guid</span> FileName = <span style="color: #2b91af;">Guid</span>.NewGuid();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
fuPhoto.SaveAs(Server.MapPath(<span style="color: #a31515;">"~/Images/"</span> + FileName + <span style="color: #a31515;">".png"</span>));<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">DataRow</span> dr = <span style="color: #2b91af;">GlobalClass</span>.dt.NewRow();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"name"</span>] = txtName.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"age"</span>] = txtAge.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"salary"</span>] = txtSalary.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"country"</span>] = txtCountry.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"city"</span>] = txtCity.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
dr[<span style="color: #a31515;">"photopath"</span>] = <span style="color: #a31515;">"~/Images/"</span> + FileName + <span style="color: #a31515;">".png"</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows.Add(dr);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.adap.Update(<span style="color: #2b91af;">GlobalClass</span>.dt);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.ShowFooter = <span style="color: blue;">false</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">catch</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
Response.Write(<span style="color: #a31515;">"<script> alert('Record not added...') </script>"</span>);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Update the record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> updateRecord(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewUpdateEventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">try</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtName = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtName"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtAge = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtAge"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtSalary = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtSalary"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtCountry = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtCountry"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">TextBox</span> txtCity = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"txtCity"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">TextBox</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">FileUpload</span> fuPhoto = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"fuPhoto"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">FileUpload</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">Guid</span> FileName = <span style="color: #2b91af;">Guid</span>.NewGuid();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">if</span> (fuPhoto.FileName != <span style="color: #a31515;">""</span>)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
fuPhoto.SaveAs(Server.MapPath(<span style="color: #a31515;">"~/Images/"</span> + FileName + <span style="color: #a31515;">".png"</span>));<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex][<span style="color: #a31515;">"photopath"</span>] = <span style="color: #a31515;">"~/Images/"</span> + FileName + <span style="color: #a31515;">".png"</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">File</span>.Delete(Server.MapPath(<span style="color: #2b91af;">GlobalClass</span>.imgEditPath));<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex][<span style="color: #a31515;">"name"</span>] = txtName.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex][<span style="color: #a31515;">"age"</span>] =<span style="color: #2b91af;">Convert</span>.ToInt32(txtAge.Text.Trim());<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex][<span style="color: #a31515;">"salary"</span>] =<span style="color: #2b91af;">Convert</span>.ToInt32(txtSalary.Text.Trim());<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex][<span style="color: #a31515;">"country"</span>] = txtCountry.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex][<span style="color: #a31515;">"city"</span>] = txtCity.Text.Trim();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.adap.Update(<span style="color: #2b91af;">GlobalClass</span>.dt); <o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
GridView1.EditIndex = -1;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">catch</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
Response.Write(<span style="color: #a31515;">"<script> alert('Record updation fail...') </script>"</span>);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> Delete Record</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"></summary></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="sender"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: grey;">///</span><span style="color: green;"> </span><span style="color: grey;"><param name="e"></param></span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">protected</span> <span style="color: blue;">void</span> RowDeleting(<span style="color: blue;">object</span> sender, <span style="color: #2b91af;">GridViewDeleteEventArgs</span> e)<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">try</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.dt.Rows[GridView1.Rows[e.RowIndex].RowIndex].Delete();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">GlobalClass</span>.adap.Update(<span style="color: #2b91af;">GlobalClass</span>.dt);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: green;">// Get the image path for removing deleted's record image from server folder</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">Image</span> imgPhoto = GridView1.Rows[e.RowIndex].FindControl(<span style="color: #a31515;">"imgPhoto"</span>) <span style="color: blue;">as</span> <span style="color: #2b91af;">Image</span>;<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: #2b91af;">File</span>.Delete(Server.MapPath(imgPhoto.ImageUrl));<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
FillGridView();<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
<span style="color: blue;">catch</span><o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
{<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
Response.Write(<span style="color: #a31515;">"<script> alert('Record not deleted...') </script>"</span>);<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="font-size: 11pt; margin: 0in 0in 0.0001pt;">
}<o:p></o:p></div>
</td></tr>
</tbody></table>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<br /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 7:-</span></span> Now, save and build you application and execute. Your application output display as following.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image006.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
It’s your application first screen. Because there is not data in table so it displace message “<b>No record available</b>”.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 8:-</span></span> For inserting data, click on button “<b>Add New Record</b>”. Now fill the data. Every controls have validation for prohibited wrong input. <o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image008.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
After filling data, your <b>GridView</b> looking as following. Here I have inserted three records.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image010.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Note: -</span></span> Id are generated automatic for every new record.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 9:-</span></span> For updating records click button <b>“Edit” </b>and change <b>TextBox</b> Data and you can select new photo of employee. For example in place of <b>age</b>“28”, updated with “30” and in place of <b>salary</b> “50000”, updated with “55000”, then click button <b>“Update”. </b>Through button <b>“Cancel” </b>you<b> </b>return previous stage.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image012.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<span class="style2" style="color: #4f81bd; font-family: Cambria, serif; font-weight: bold;"><span style="font-size: 13pt; line-height: 19px;">Step 10:-</span></span> For record deletion, click on button <b>“Delete”. </b>Before deleting record, confirmation alert message are popup. Here I have deleted 3<sup>rd</sup>record (e.g. Andrew Deniel). After deleting record your <b>GridView</b> looks as following.<o:p></o:p></div>
<div class="MsoNormal" style="font-family: Calibri, sans-serif; font-size: 11pt; line-height: 17px; margin: 0in 0in 10pt;">
<img alt="Insert, Delete, Update in GridView in ASP.Net using C#" src="http://www.mindstick.com/Articles/38ca3305-6346-467e-b03b-a536737ff623/Images/image014.jpg" style="border: 0px;" title="Insert, Delete, Update in GridView in ASP.Net using C#" /></div>
</td></tr>
<tr><td><br /></td></tr>
</tbody></table>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com1tag:blogger.com,1999:blog-2650295613816833857.post-66363850652555935642013-07-23T03:50:00.002-07:002013-07-23T03:53:04.684-07:00How to store datatable in viewstate:<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #333333; font-family: 'Georgia Serif'; font-size: x-small; text-align: center;">How to store datatable in viewstate:</span><br />
<span style="background-color: white; color: #333333; font-family: 'Georgia Serif'; font-size: x-small; text-align: center;"><br /></span>
<h3 style="background-color: #03082f; color: #333333; font-family: 'Georgia Serif';">
Description:</h3>
<div style="background-color: #03082f; color: #333333; font-family: 'Georgia Serif'; font-size: small;">
In this example i will get data table from database and store it in <b>viewstate</b> in page load event and then in button click event i will get data table from<b> viewstate</b> and populates it in gridview. This is the example how to <b>store large volumes of data in viewstate</b>.</div>
<div style="background-color: #03082f; color: #333333; font-family: 'Georgia Serif'; font-size: small;">
<br /></div>
<div style="background-color: #03082f; color: #333333; font-family: 'Georgia Serif'; font-size: small;">
Take form which contains a label,a button and gridview like below</div>
<div style="background-color: #03082f; color: #333333; font-family: 'Georgia Serif'; font-size: small;">
<div class="dp-highlighter" style="background-color: #e7e5dc; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 1405.796875px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; padding: 3px 8px 10px 10px;">
<a href="http://aspdotnet-sekhar.blogspot.in/2013/06/storing-datatable-in-viewstate-in-asp.net-example.html#" style="background-color: inherit; background-image: none; border: none; color: #a0a0a0; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none;">view plain</a><a href="http://aspdotnet-sekhar.blogspot.in/2013/06/storing-datatable-in-viewstate-in-asp.net-example.html#" style="background-color: inherit; background-image: none; border: none; color: #a0a0a0; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none;">print</a><a href="http://aspdotnet-sekhar.blogspot.in/2013/06/storing-datatable-in-viewstate-in-asp.net-example.html#" style="background-color: inherit; background-image: none; border: none; color: #a0a0a0; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none;">?</a></div>
</div>
<ol class="dp-xml" style="background-color: white; border: none; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">form</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">id</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"form1"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">runat</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"server"</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">div</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> </span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">asp:GridView</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ID</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"GridView1"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">runat</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"server"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">CellPadding</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"4"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ForeColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#333333"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">GridLines</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"None"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">style</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"z-index: 1; left: 279px; top: 121px; position: absolute; height: 133px; width: 187px"</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">alternatingrowstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"White"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">editrowstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#7C6F57"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">footerstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#1C5E55"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">Font-Bold</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"True"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ForeColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"White"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">headerstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#1C5E55"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">Font-Bold</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"True"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ForeColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"White"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">pagerstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#666666"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ForeColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"White"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">HorizontalAlign</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"Center"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">rowstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#E3EAEB"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">selectedrowstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#C5BBAF"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">Font-Bold</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"True"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ForeColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#333333"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">sortedascendingcellstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#F8FAFA"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">sortedascendingheaderstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#246B61"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">sorteddescendingcellstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#D4DFE1"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">sorteddescendingheaderstyle</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#15524A"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"></</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">asp:GridView</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">asp:Button</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ID</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"Button1"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">runat</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"server"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">onclick</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"Button1_Click"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">style</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"z-index: 1; left: 284px; top: 80px; position: absolute"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">Text</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"LoadData"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">/></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"><</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">asp:Label</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ID</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"Label1"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">runat</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"server"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">BackColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#CCCCCC"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">ForeColor</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"#FF0066"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="attribute" style="background-color: inherit; border: none; color: red; margin: 0px; padding: 0px;">style</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">=</span><span class="attribute-value" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"z-index: 1; left: 325px; top: 54px; position: absolute; width: 354px"</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"></</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">asp:Label</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> </span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;"></</span><span class="tag-name" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">div</span><span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;">lt;/form<span class="tag" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">></span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
</ol>
</div>
<br />In the page load event and button click event write below code<br /><div class="dp-highlighter" style="background-color: #e7e5dc; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; margin: 18px 0px !important; overflow: auto; padding-top: 1px; width: 1405.796875px;">
<div class="bar" style="padding-left: 45px;">
<div class="tools" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-style: solid; border-left-width: 3px; color: silver; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 9px; padding: 3px 8px 10px 10px;">
<a href="http://aspdotnet-sekhar.blogspot.in/2013/06/storing-datatable-in-viewstate-in-asp.net-example.html#" style="background-color: inherit; background-image: none; border: none; color: #a0a0a0; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none;">view plain</a><a href="http://aspdotnet-sekhar.blogspot.in/2013/06/storing-datatable-in-viewstate-in-asp.net-example.html#" style="background-color: inherit; background-image: none; border: none; color: #a0a0a0; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none;">print</a><a href="http://aspdotnet-sekhar.blogspot.in/2013/06/storing-datatable-in-viewstate-in-asp.net-example.html#" style="background-color: inherit; background-image: none; border: none; color: #a0a0a0; margin: 0px 10px 0px 0px; padding: 0px; text-decoration: none;">?</a></div>
</div>
<ol class="dp-c" style="background-color: white; border: none; color: #5c5c5c; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1px 45px !important; padding: 0px;">
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"><span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">protected</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">void</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> Page_Load(</span><span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">object</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> sender, EventArgs e) </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> { </span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> SqlConnection con = <span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">new</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> SqlConnection(</span><span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"database=cs9db;user id=sa;password=9290812112;data source=(local);"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">); </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> SqlDataAdapter da = <span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">new</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> SqlDataAdapter(</span><span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"Select * from emp where deptno="</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">+30, con); </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> DataTable dt = <span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">new</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> DataTable(); </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> da.Fill(dt); </span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> ViewState[<span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"EmpTable"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">] = dt;</span><span class="comment" style="background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;">// storing datatable in viewstate</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> Label1.Text = <span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"Data Table stored in viewstate"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">; </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> } </span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> <span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">protected</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span><span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">void</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> Button1_Click(</span><span class="keyword" style="background-color: inherit; border: none; color: #006699; font-weight: bold; margin: 0px; padding: 0px;">object</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> sender, EventArgs e) </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> { </span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> GridView1.DataSource = (DataTable)ViewState[<span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"EmpTable"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">];</span><span class="comment" style="background-color: inherit; border: none; color: #008200; margin: 0px; padding: 0px;">// retrieving datatable from viewstate</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;"> </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> GridView1.DataBind(); </span></li>
<li class="" style="background-color: #f8f8f8; border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> Label1.Text = <span class="string" style="background-color: inherit; border: none; color: blue; margin: 0px; padding: 0px;">"View state datatable is displayed in gridview"</span><span style="background-color: inherit; border: none; margin: 0px; padding: 0px;">; </span></span></li>
<li class="alt" style="border-left-color: rgb(108, 226, 108); border-left-width: 3px; border-style: none none none solid; color: inherit; line-height: 14px; list-style: decimal-leading-zero outside; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="background-color: inherit; border: none; color: black; margin: 0px; padding: 0px;"> } </span></li>
</ol>
</div>
<br /><br />In the page load event i am getting datatable from emp table and storing it in viewstate. in button click event i am getting viewstate emptable and binding that table to gridview. In this way you can store large amount of data in viewstate but it will increase the page size.<br /><br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibmTgEOPZBY4q9i9JXe353uxosLjWzcZ-76JHMaTE86hintoYaRV7eFkMXaLd_qfqZ0yx0sMgnUeERUp9R1otlpa2wUuOitLhXIEhaMM8HFauQMZ9_qcokigryT4fzcKyJbZ3-h7-XTVn7/s1600/Storing+datatable.png" imageanchor="1" style="color: #0889c4; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibmTgEOPZBY4q9i9JXe353uxosLjWzcZ-76JHMaTE86hintoYaRV7eFkMXaLd_qfqZ0yx0sMgnUeERUp9R1otlpa2wUuOitLhXIEhaMM8HFauQMZ9_qcokigryT4fzcKyJbZ3-h7-XTVn7/s400/Storing+datatable.png" style="border-width: 0px;" width="400" /></a></div>
<br /><div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM26RZv-ErjrXsqYVtG6MdKX2j_239J2hi3IVWbXte5iPQ6wP6qwAclHo70WNWYEEqgo77hm05-lNO_a8WhjdAHX1EUqktIWCv2MEvolXl5Vggrt51lplQVjaylApUuDZvvOXp7f8YcGko/s1600/Datatable+in+viewstate.png" imageanchor="1" style="color: #0889c4; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="356" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiM26RZv-ErjrXsqYVtG6MdKX2j_239J2hi3IVWbXte5iPQ6wP6qwAclHo70WNWYEEqgo77hm05-lNO_a8WhjdAHX1EUqktIWCv2MEvolXl5Vggrt51lplQVjaylApUuDZvvOXp7f8YcGko/s400/Datatable+in+viewstate.png" style="border-width: 0px;" width="400" /> </a></div>
<h3 class="separator" style="clear: both;">
<br /></h3>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-37146875411210518762013-07-19T23:34:00.003-07:002013-07-19T23:34:36.692-07:00दाबेली - Dabeli Recipe<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="topbar" style="background-color: white; border-bottom-color: rgb(114, 102, 97); border-style: none none solid; border-width: 0px 0px 3px; color: #726661; font-family: Oswald, sans-serif; font-size: 24px; line-height: 1.3em; margin: 0px 0px 12px 2px; outline: none 0px; padding: 0px 0px 4px; vertical-align: middle;">
दाबेली - Dabeli Recipe</h1>
<div>
<a href="http://nishamadhulika.com/609-dabeli-recipe-in-hindi.html">http://nishamadhulika.com/609-dabeli-recipe-in-hindi.html</a></div>
<div>
<br /></div>
<div>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
दाबेली गुजरात का लोकप्रिय स्ट्रीट फूड है. यह दिखने में बर्गर जैसा लगता है लेकिन इसका स्वाद एकदम हटकर है. इसका खट्टा, मीठा, तीखा और नमकीन स्वाद आप सभी को बहुत पसंद आयेगा.</div>
<ul style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; list-style: none outside none; margin: 12px 0px; outline: none 0px; padding: 0px 0px 0px 40px; vertical-align: middle;">
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">Read this recipe in English - <strong style="border: 0px none; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;"><a href="http://nishamadhulika.com/en/650-dabeli-recipe.html" style="border: 0px none; color: #0087c5; cursor: pointer; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: middle;" title="How to make Dabeli">Dabeli Recipe Video</a></strong></li>
</ul>
<h2 style="background-color: white; border: 0px none; color: #726661; font-family: Oswald, sans-serif; font-size: 24px; font-weight: normal; line-height: 1.3em; margin: 0px 0px 10px; outline: none 0px; padding: 0px; vertical-align: middle;">
आवश्यक सामग्री - Ingredients for Dabeli</h2>
<ul style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; list-style: none outside none; margin: 12px 0px; outline: none 0px; padding: 0px 0px 0px 40px; vertical-align: middle;">
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">पाव - 8</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">मक्खन - 2 टेबल स्पून</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">मीठी चटनी - आधा कप</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">लाल या हरी चटनी- आधा कप</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">मसाला मूगफली - 2 टेबल स्पून</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">पतले सेव - आधा कप</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">हरा धनियां - बारीक कटा हुआ आधा कप</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">अनार के दाने - आधा कप</li>
</ul>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
दाबेली मसाला - Dabeli Masala</div>
<ul style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; list-style: none outside none; margin: 12px 0px; outline: none 0px; padding: 0px 0px 0px 40px; vertical-align: middle;">
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">साबुत धनियां - 2 छोटी चम्मच</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">जीरा - 1 छोटी चम्मच</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">लाल मिर्च - 1</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">दाल चीनी - एक इंच का टुकड़ा</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">लौंग - 2</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">काली मिर्च - 3-4</li>
</ul>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
दाबेली स्टफिंग</div>
<ul style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; list-style: none outside none; margin: 12px 0px; outline: none 0px; padding: 0px 0px 0px 40px; vertical-align: middle;">
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">आलू - 4</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">टमाटर - 2</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">हरी मिर्च - 1</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">अदरक - 1 इंच लम्बा टुकड़ा</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">मक्खन - 1 टेबल स्पून</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">तेल - 1 टेबल स्पून</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">जीरा - आधा छोटी चम्मच</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">हींग - 1 पिंच</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">हल्दी पाउडर - 1/4 छोटी चम्मच</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">चीनी - 3/4 छोटी चम्मच (यदि आप चाहें)</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">नीबू का रस - 1 छोटी चम्मच(यदि आप चाहें)</li>
<li style="border: 0px none; list-style-position: outside; list-style-type: disc; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">नमक - स्वादानुसार (आधा छोटी चम्मच)</li>
</ul>
<h2 style="background-color: white; border: 0px none; color: #726661; font-family: Oswald, sans-serif; font-size: 24px; font-weight: normal; line-height: 1.3em; margin: 0px 0px 10px; outline: none 0px; padding: 0px; vertical-align: middle;">
विधि - How to make Dabeli</h2>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
आलू को उबाल कर छीलिये और बारीक तोड़ लीजिये. टमाटर को धोइये और छोटा छोटा काट लीजिये. अदरक को कद्दूकस कर लीजिये या पेस्ट बना लीजिये. हरी मिर्च को बारीक काट लीजिये.<br />अब स्टफिंग में मिलाने के लिये दाबेली मसाला बना लेते है.<br /><img alt="" class="alignnone" height="200" src="http://maithily.com/NM/images/dabeli-recipe-ingredients.jpg" style="border: 0px none; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;" title="How to make Dabeli" width="550" /><br /><strong style="border: 0px none; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">दाबेली मसाला - Dabeli Masala Powder Recipe</strong><br />लाल मिर्च को छोड़ कर सारे मसाले गरम तवे पर डालकर हल्के से ब्राउन होने तक भून लीजिये. भुने हुये मसाले ठंडा कीजिये और बारीक पीस लीजिये. दाबेली मसाला तैयार है. इस मसाले को दाबेली स्टफिंग को भूनते समय मिला लेते हैं.</div>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
<strong style="border: 0px none; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">दाबेली स्टफिंग </strong><br />कढ़ाई में मक्खन और तेल डाल कर गरम कीजिये, गरम मक्खन में हींग और जीरा डालिये, जीरा हल्का सा भूनने पर अदरक, हरी मिर्च और हल्दी पाउडर डालिये, हल्का सा भूनिये, कटे टमाटर डालिये और टमाटर के मैस होने तक भूनते हुये पका लीजिये. आलू, नमक और दाबेली मसाला मिलाइये और 3 - 4 मिनिट तक चलाते हुये भूनिये. दाबेली स्टफिंग तैयार है, स्टफिंग को प्याले में निकाल कर रख लीजिये.<br /><img alt="" class="alignnone" height="438" src="http://maithily.com/NM/images/dabeli-recipi.jpg" style="border: 0px none; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;" title="Dabeli Recipe in Hindi" width="550" /><br /><strong style="border: 0px none; margin: 0px; outline: none 0px; padding: 0px; vertical-align: middle;">दाबेली बनाइये</strong><br />पाव को 2 साइड से इस तरह काटिये कि वह बची हुई 2 साइड से जुड़ा रहे, तवे को गरम कीजिये, कटे पाव के ऊपर और नीचे थोड़ा सा मक्खन लगा कर, पाव को दोंनो ओर से हल्का ब्राउन होने तक सेक लीजिये.</div>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
पाव के काटे गये भाग को खोलिये, खुले भाग के अन्दर दोंनों तरह एक ओर मीठी और दूसरी ओर नमकीन हरी चटनी लगाइये, अब एक चम्मच ऊपर तक भर का दाबेली स्टफिंग रखिये, इसके ऊपर छोटी चम्मच सींग दाना, 1 छोटी चम्मच सेव, 1 छोटी चम्मच हरा धनियां, और 1 छोटी चम्मच अनार दाने रखिये. दाबेली को हाथ से दबा कर बन्द कर दीजिये.</div>
<div style="background-color: white; border: 0px none; font-family: Arial, Helvetica, sans-serif; font-size: 13px; outline: none 0px; padding: 0px 0px 10px; vertical-align: middle;">
स्वादिष्ट दाबेली तैयार हैं, गरम गरम ताजा दाबेली परोसिये और खाइये.</div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-58111753912158420192013-07-19T23:33:00.003-07:002013-07-19T23:33:58.933-07:00દાબેલી<div dir="ltr" style="text-align: left;" trbidi="on">
<strong style="background-color: white; font-family: Georgia, 'Times New Roman Times', serif; font-size: 25px; line-height: 40px; text-align: -webkit-center;">દાબેલી</strong><br />
<a href="http://deshgujarat.com/2009/05/31/gujarati-vangi-recipe-fast-food-dishkutchi-dabeli/">http://deshgujarat.com/2009/05/31/gujarati-vangi-recipe-fast-food-dishkutchi-dabeli/</a><br />
<br />
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
દાબેલીની રીતની ફરમાઈશ કરનાર બે વાંચક મિત્રો છે ઓસ્ટ્રેલિયાના તારકભાઈ દલવાડી અને કેનેડાના વિભૂતિબહેન પટેલ.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
એક વાતની આપને જાણ હશે જ કે દાબેલી એ મૂળ કચ્છની વેરાઈટી છે. કચ્છમાં તે ડબલ રોટી તરીકે ઓળખાય છે અને કચ્છના માંડવી બંદરના એક કારીગરે આ ખાવાની આઈટમની ગઈ સદીમાં શોધ કરી હતી.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
જો આપના કોઈ સગા કચ્છ રહેતા હોય તો ભુજના એસટી સ્ટેન્ડની બાજુમાં દાબેલીની સંખ્યાબંધ દુકાનો આવેલી છે અને ત્યાં દાબેલીનો તૈયાર મસાલો બહુ જ સસ્તામાં વેચાતો હોય છે તે મંગાવવાનું ભૂલશો નહીં. જો આ મસાલો આપના હાથમાં આવી જશે તો તો આપ દુકાન જેવી જ અસ્સલ દાબેલી ઘરમાં જ બનાવી શકશો.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
હવે જો આ કચ્છ કનેક્શનની કોઈ વ્યવસ્થા ન હોય તો વાંધો નહીં. નીચેની રીત વાંચી જાઓ અને કરો તૈયાર દાબેલી. બનાવી દો તમારા રસોડાને કચ્છ.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
<strong>સામગ્રી:</strong> દસથી બાર નંગ દાબેલીના બન, ૫૦૦ ગ્રામ બટાકા, ૧૦૦ ગ્રામ શેકેલી સીંગ, ૧ ચમચી લાલ મરચું, અર્ધી ચમચી મરીનો ભૂકો, દસેક વાટેલાં લીલાં મરચાં, ૨૫ ગ્રામ તલનો ભૂકો, ૧ ચમચી આખા ધાણા, ૨ ચમચી કોથમીર, ૧૦ ગ્રામ વરિયાળી, ૧ ચમચી આંબોળિયાનો પાઉડર, ૧ લીંબુ, ૨ ચમચી ખાંડ, ૧ ચમચી ગરમ મસાલો, પ્રમાણ મુજબનું ઘી, ચટણી માટે લસણ, જીરું, પ્રમાણ મુજબ ગોળ, ૨ ઝીણી ડુંગળી, ૧૦૦ ગ્રામ દાડમ, ઝીણી સેવ, પ્રમાણસર તેલ, ટોમેટો કેચપ, પ્રમાણસર મીઠું.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
<strong>રીત:</strong> બટાકાને બાફીને છોલી કાઢી છીણી નાખો. શેકેલી સીંગને અર્ધા ફાડચા રહે તેમ ખાંડી કાઢો.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
ગરમ તેલમાં સીંગ નાખી મીઠું, મરચું, મરી નાખી સહેજ સાંતળો.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
બટાકાના માવામાં બટાકાવડાં જેવો તમામ મસાલો નાખવો.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
દાબેલીના બનમાં કાપો કરીને પહેલા બેઉ ચટણી નાખી પછી બટાકાનું મિશ્રણ મૂકો.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
દાડમ, શેકેલી સીંગ, ઝીણી ડુંગળી જુદાં રાખી દરેક બનમાં છૂટા પણ નાખી શકાય છે.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
પહેલાં ધી મૂકીને, બન શેકીને, પછી મસાલો ભરો. મસાલો ભરીને પછી પણ શેકી શકાય.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
ટોમેટો કેચપ સોસ સાથે પીરસો અને વાહ વાહ મેળવો.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
હવે જરા ચટણીની વાત કરી લઈએ, કારણકે ચટણી સિવાય તો સ્વાદ ફીક્કો જ રહી જશે.</div>
<div style="background-color: white; border: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 15px; padding: 0px; text-align: -webkit-center; vertical-align: baseline;">
આંબોળિયાની ચટણી બનાવવા માટે આંબોળિયાનો પાવડર, ગોળ, મીઠું, મરચું ભેગા કરી પ્રમાણ અનુસાર પાણી ઉમેરી ગરમ કરો. જ્યારે લટણની ચટણી બનાવવા લસણ, મીઠું, મરચું, ગોળ અને જીરું ભેગાં કરી વાટો. ડુંગળીને સાંતળીને પણ નાખી શકાય</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-40698316373419252912013-07-18T22:27:00.002-07:002013-07-18T22:27:48.283-07:00Malpooda_માલપૂડા/1<div dir="ltr" style="text-align: left;" trbidi="on">
Malpooda_માલપૂડા<br />
<br />
<a href="http://www.desigujju.com/gujaratirecipes/view/20/Malpooda_%E0%AA%AE%E0%AA%BE%E0%AA%B2%E0%AA%AA%E0%AB%82%E0%AA%A1%E0%AA%BE/1">http://www.desigujju.com/gujaratirecipes/view/20/Malpooda_%E0%AA%AE%E0%AA%BE%E0%AA%B2%E0%AA%AA%E0%AB%82%E0%AA%A1%E0%AA%BE/1</a></div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-2130465969979737742013-07-18T22:23:00.002-07:002013-07-18T22:23:40.793-07:00Farali Buff Vada<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 style="background-color: white; color: #ff3000; font-family: cursive; font-weight: normal; margin: 0px; padding: 0px; text-align: center;">
Farali Buff Vada</h1>
<div>
<br /></div>
<div>
<a href="http://www.desigujju.com/gujaratirecipes/view/306/Buff_Vada_%E0%AA%AC%E0%AA%AB%E0%AA%B5%E0%AA%A1%E0%AA%BE%E0%AA%82_/1">http://www.desigujju.com/gujaratirecipes/view/306/Buff_Vada_%E0%AA%AC%E0%AA%AB%E0%AA%B5%E0%AA%A1%E0%AA%BE%E0%AA%82_/1</a></div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-46196456152153048152013-07-17T00:02:00.002-07:002013-07-18T22:24:47.217-07:00SQL Joins<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 style="background-color: #f9f9f9; background-image: url(http://www.dotnet-tricks.com/images/sprite.png); background-position: 0px -2747px; background-repeat: no-repeat no-repeat; color: #5b5b5b; font-family: Georgia; font-size: 16pt; line-height: 30px; margin: 0px; padding: 10px 0px 20px 45px; text-align: justify; text-shadow: rgb(255, 255, 255) 1px 1px 0px;">
SQL Joins</h1>
<div>
<a href="http://www.aspdotnet-suresh.com/2011/12/different-types-of-joins-in-sql-server.html">http://www.aspdotnet-suresh.com/2011/12/different-types-of-joins-in-sql-server.html</a></div>
<div>
<br /></div>
<div>
<div class="firstpara" style="background-color: #f9f9f9; color: #161616; font-family: Arial, Tahoma, Georgia, sans-serif; font-size: 13px; line-height: 24px; padding-bottom: 5px; padding-left: 20px; padding-top: 15px; text-align: justify;">
There are <a class="link" href="http://www.dotnet-tricks.com/Tutorial/sqlserver/W1aI140312-Different-Types-of-SQL-Joins.html" style="color: #3171b0; font-size: 10pt; text-align: left; text-decoration: none; text-shadow: rgb(255, 255, 255) 1px 1px 0px;">Different Types of SQL Joins</a> which are used to query data from more than one tables. In this article, I would like to share how joins work in LINQ. LINQ has a JOIN query operator that provide SQL JOIN like behavior and syntax. Let's see how JOIN query operator works for joins. This article will explore the SQL Joins with C# LINQ.</div>
<ol class="orderlist" style="background-color: #f9f9f9; color: #161616; font-family: Arial, Tahoma, Georgia, sans-serif; font-size: 13px; font-weight: bold; line-height: 24px; margin-left: 2px;">
<li style="padding: 5px 0px; text-align: justify;"><div style="font-weight: normal; padding: 0px;">
INNER JOIN</div>
</li>
<li style="padding: 5px 0px; text-align: justify;"><div style="font-weight: normal; padding: 0px;">
LEFT OUTER JOIN</div>
</li>
<li style="padding: 5px 0px; text-align: justify;"><div style="font-weight: normal; padding: 0px;">
CROSS JOIN</div>
</li>
<li style="padding: 5px 0px; text-align: justify;"><div style="font-weight: normal; padding: 0px;">
GROUP JOIN</div>
</li>
</ol>
<img class="img" contextmenu="return false;" src="http://www.dotnet-tricks.com/Content/images/linq/LinqJoin.png" style="-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; background-color: #f9f9f9; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; color: #161616; font-family: Arial, Tahoma, Georgia, sans-serif; font-size: 13px; line-height: 24px; margin: 20px 0px; text-align: center;" /><span style="background-color: #f9f9f9; color: #161616; font-family: Arial, Tahoma, Georgia, sans-serif; font-size: 13px; line-height: 24px; text-align: justify;"> </span><img class="img" src="http://www.dotnet-tricks.com/Content/images/linq/crossjoinimg.png" style="-webkit-box-shadow: rgb(157, 157, 157) 0px 0px 10px; background-color: #f9f9f9; border: 0px; box-shadow: rgb(157, 157, 157) 0px 0px 10px; color: #161616; font-family: Arial, Tahoma, Georgia, sans-serif; font-size: 13px; line-height: 24px; margin: 20px 0px; text-align: center;" /><div style="background-color: #f9f9f9; color: #161616; font-family: Arial, Tahoma, Georgia, sans-serif; font-size: 13px; line-height: 24px; padding-left: 20px; padding-top: 10px; text-align: justify;">
The JOIN query operator compares the specified properties/keys of two collections for equality by using the EQUALS keyword. By default, all joins queries written by the JOIN keyword are treated as equijoins.</div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com0tag:blogger.com,1999:blog-2650295613816833857.post-50515403291521814362013-07-15T04:38:00.000-07:002013-07-15T04:38:25.165-07:00Create Inbox like Gmail Inbox using Gridview in asp.net with c#<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 class="post-title entry-title" itemprop="name" style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; margin: 20px 0px 0px; position: relative;">
Create Inbox like Gmail Inbox using Gridview in asp.net with c#</h3>
<div>
<br /></div>
<div>
<a href="http://sunichand2000.blogspot.in/2012/04/create-inbox-like-gmail-inbox-using.html">http://sunichand2000.blogspot.in/2012/04/create-inbox-like-gmail-inbox-using.html</a></div>
<div>
<br /></div>
<div>
<b style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"><u>Inbox.aspx</u></b><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><b style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"><u><br /></u></b><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"><%@ Page Title="" Language="C#" MasterPageFile="~/SuccessPlus/Marketing/admin.master" EnableEventValidation="true" AutoEventWireup="true" CodeFile="Inbox.aspx.cs" Inherits="Marketing_Default2" %></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"><asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <input id="hdndranch" runat="server" type="hidden" /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <input id="hdnmanager" runat="server" type="hidden" /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%-- <asp:ScriptManager ID="ScriptManager1" runat="server"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:ScriptManager>--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <table align="center" class="ad_txt_border" width="700"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <tr></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <td bgcolor="#3399FF" class="ad_head" style="height: 20px" width="20"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <img id="IMG1" src="../images/download_arrow_icon.gif" />Inbox</td></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <td bgcolor="#3399FF" class="ad_head" style="height: 20px"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </td></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </tr></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <tr></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <td bgcolor="" class="ad_head" style="height: 20px" width="20"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <td bgcolor="" class="ad_head" style="height: 20px"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </td></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </tr></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <tr></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <td class="txt" colspan="2"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%--<asp:Button ID="btnDelete" runat="server"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> OnClick="btnDelete_Click"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> OnClientClick="return DeleteConfirmation();"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Text="Delete" />--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> DataKeyNames="Id" BackColor="WhiteSmoke"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> onrowdatabound="GridView1_RowDataBound" ></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <Columns ></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%--<asp:TemplateField HeaderText="Select"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <HeaderTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:CheckBox ID="CheckBox1" runat="server"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">AutoPostBack="True"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> oncheckedchanged="CheckBox1_CheckedChanged" /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </HeaderTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:CheckBox ID="chkSelect" runat="server"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> AutoPostBack="True"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> OnCheckedChanged="chkSelect_CheckedChanged"/></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField>--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TemplateField HeaderText="" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblfrom" runat="server" Text='<%# Eval("MailFrom") %>' ></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%-- <asp:TemplateField HeaderText="" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblto" runat="server" Text='<%# Eval("MailTo") %>' ></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField>--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TemplateField HeaderText="" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="LinkButton1" Font-Underline="false" runat="server" CommandName='<%# Eval("Id") %>'</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Text='<%# Eval("Subject") %>' OnCommand="TabChange"></asp:LinkButton></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TemplateField HeaderText="" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblstatus" runat="server" Visible="false" Text='<%# Eval("status") %>'></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblfname" runat="server" Visible="false" Text='<%# Eval("Filename") %>'></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Image ID="imgattach" ImageUrl="~/SuccessPlus/images/paperclip.gif" runat="server" /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%-- <asp:HyperLinkField DataNavigateUrlFields="Id" HeaderStyle-BackColor="Gainsboro"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> DataNavigateUrlFormatString="~/Employer/DownloadFile.aspx?Id={0}" HeaderText="Download" Text="Download" />--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%-- <asp:TemplateField HeaderText="Download" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblstatus" runat="server" Visible="false" Text='<%# Eval("status") %>'></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblfname" runat="server" Visible="false" Text='<%# Eval("Filename") %>'></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:HyperLink ID="lnkDownload" runat="server" NavigateUrl='<%# Eval("Id", "~/SuccessPlus/Marketing/DownloadFile.aspx?Id={0}") %>' Text="Download"></asp:HyperLink></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TemplateField HeaderText="View" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:HyperLink ID="lnkView" runat="server" NavigateUrl='<%# Eval("Id", "~/SuccessPlus/Marketing/ViewFile.aspx?Id={0}") %>'</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Text="View"></asp:HyperLink></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TemplateField HeaderText="Delete" HeaderStyle-BackColor="#3399FF"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <ItemTemplate> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:ImageButton ToolTip="Delete" ID="img" runat="server" OnCommand="delete_click" ImageUrl="~/SuccessPlus/images/b_drop.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"id") %>'></asp:ImageButton></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </ItemTemplate></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TemplateField>--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </Columns></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:GridView></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <%-- <div></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Table ID="Table1" runat="server" Width="100%" BorderWidth="1"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TableRow runat="server"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TableCell runat="server" HorizontalAlign="Center"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Eval("Id") %>' OnCommand="TabChange"> Tab 1</asp:LinkButton></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TableCell></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TableCell runat="server" HorizontalAlign="Center"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="LinkButton2" runat="server" OnCommand="TabChange">Tab 2</asp:LinkButton> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TableCell></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Center"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="LinkButton3" runat="server" OnCommand="TabChange">Tab 3</asp:LinkButton> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TableCell></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TableRow></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:Table></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </div>--%></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:MultiView ID="MultiView1" runat="server" Visible="false"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:View ID="View1" runat="server"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Table ID="Table2" runat="server" BorderWidth="1" Width="100%"></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TableRow></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TableCell></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Image ID="Image1" ImageUrl="~/SuccessPlus/images/star_off_sm_2.gif" runat="server" /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TextBox ID="txtfrom" BorderStyle="None" Width="500px" Text="Renju John <renjujohn.2@gmail.com>" </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> runat="server"></asp:TextBox></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TextBox ID="txtdate" BorderStyle="None" Width="500px" Text="Wed, Jul 18, 2012 at 4:28 PM"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> runat="server"></asp:TextBox></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <br /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> To: <asp:TextBox ID="txtto" BorderStyle="None" Text="suni <sunichand2000@gmail.com>" Width="500px"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> runat="server"></asp:TextBox> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <br /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="lbreply" runat="server" >Reply</asp:LinkButton> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="lbdelete" OnCommand="delete_click" runat="server" >Delete</asp:LinkButton> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:LinkButton ID="lbinbox" OnCommand="inbox_click" runat="server" >Inbox</asp:LinkButton> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <br /> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:TextBox ID="txtbody" BorderStyle="None" TextMode="MultiLine" Width="700px" Height="200px"</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> runat="server"></asp:TextBox></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <br /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:Label ID="lblattach" runat="server" Text="Label" Visible="false"></asp:Label></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:HyperLink ID="hldownload" runat="server" Visible="false">Download</asp:HyperLink></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <asp:HyperLink ID="hlview" runat="server" Visible="false">View</asp:HyperLink></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> &nbsp;&nbsp;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> <br /> <br /></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TableCell></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:TableRow></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:Table></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:View></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </asp:MultiView></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </td></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </tr></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </table></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"></asp:Content></span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><div style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-decoration: underline;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-decoration: underline;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-decoration: underline;">
<br /></div>
<div style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-decoration: underline;">
<b>Inbox.aspx.cs</b></div>
<div style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-decoration: underline;">
<b><br /></b></div>
<div style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-decoration: underline;">
<b><br /></b></div>
<br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Data;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Data.SqlClient;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Configuration;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Collections;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web.Security;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web.UI;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web.UI.WebControls;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web.UI.WebControls.WebParts;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web.UI.HtmlControls;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Net;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Web.Mail;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.IO;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Drawing;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">using System.Diagnostics;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">public partial class Marketing_Default2 : System.Web.UI.Page</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">{</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Class1 cls = new Class1();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> int cid;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> connectionClass.connectionClass db = new connectionClass.connectionClass();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void Page_Load(object sender, EventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (!Page.IsPostBack)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> hdndranch.Value = Request.QueryString["branch"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> hdnmanager.Value = Request.QueryString["manager"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> gridbind();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> public void gridbind()</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (cls.con.State == ConnectionState.Closed)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> cls.con.Open();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> SqlDataAdapter da = new SqlDataAdapter("select * from mail where ToType='Marketing Desk'", cls.con);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> DataSet ds = new DataSet();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> da.Fill(ds);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> GridView1.DataSource = ds;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> GridView1.DataBind();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> foreach (GridViewRow row in GridView1.Rows)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Label lblstatus = (Label)row.FindControl("lblstatus");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Label lblfname = (Label)row.FindControl("lblfname");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> System.Web.UI.WebControls.Image imgattach = (System.Web.UI.WebControls.Image)row.FindControl("imgattach");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //HyperLink lnkDownload = (HyperLink)row.FindControl("lnkDownload");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //HyperLink lnkView = (HyperLink)row.FindControl("lnkView");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (lblstatus.Text == "False")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> row.BackColor = System.Drawing.Color.White;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> else</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> row.BackColor = System.Drawing.Color.Gray;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (lblfname.Text == "")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //lnkDownload.Visible = false;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //lnkView.Visible = false;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> imgattach.Visible = false;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> else</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //lnkDownload.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //lnkView.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> imgattach.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void TabChange(object sender, CommandEventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> string id = e.CommandName;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> SqlDataAdapter da = new SqlDataAdapter("select * from mail where ToType='Marketing Desk' and id='" + id + "'", cls.con);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> DataSet ds = new DataSet();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> da.Fill(ds);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> LinkButton lb = (LinkButton)sender;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (lb.ID == "LinkButton1")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> MultiView1.ActiveViewIndex = 0;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> MultiView1.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> txtfrom.Text = ds.Tables[0].Rows[0]["MailFrom"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> txtto.Text = ds.Tables[0].Rows[0]["MailTo"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> txtbody.Text = ds.Tables[0].Rows[0]["MailContent"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> txtdate.Text = ds.Tables[0].Rows[0]["Date"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lbdelete.CommandArgument = id;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (ds.Tables[0].Rows[0]["Filename"].ToString() != "")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lblattach.Text = ds.Tables[0].Rows[0]["Filename"].ToString();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lblattach.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> hldownload.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> hlview.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> hldownload.NavigateUrl = "~/SuccessPlus/Marketing/DownloadFile.aspx?Id="+id+"&branch=" + hdndranch.Value + "&manager=" + hdnmanager.Value;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> hlview.NavigateUrl = "~/SuccessPlus/Marketing/DownloadFile.aspx?Id="+id+"&branch=" + hdndranch.Value + "&manager=" + hdnmanager.Value;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> GridView1.Visible = false;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> db.executeNonQuery("update mail set status='1' where id='" + id + "' and ToType='Marketing Desk'", cls.conStr);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> db.close();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> else if (lb.ID == "LinkButton2")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> MultiView1.ActiveViewIndex = 1;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> else if (lb.ID == "LinkButton3")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> MultiView1.ActiveViewIndex = 2;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> public void delete_click(object sender, System.Web.UI.WebControls.CommandEventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> try</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> int id = Convert.ToInt16(e.CommandArgument);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> db.executeNonQuery("delete from mail where id='" + id + "' and ToType='Marketing Desk'", cls.conStr);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> db.close();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> gridbind();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> catch (Exception ex)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> public void inbox_click(object sender, System.Web.UI.WebControls.CommandEventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> try</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> GridView1.Visible = true;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> MultiView1.Visible = false;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> catch (Exception ex)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void btnDelete_Click(object sender, EventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> ////Create String Collection to store IDs of</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> ////records to be deleted .</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //StringCollection idCollection = new StringCollection();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //string strID = string.Empty;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> ////Loop through GridView rows to find checked rows</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //for (int i = 0; i < GridView1.Rows.Count; i++)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //{</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // CheckBox chkDelete = (CheckBox)GridView1.Rows[i].</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // Cells[0].FindControl("chkSelect");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // if (chkDelete != null)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // if (chkDelete.Checked)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // strID = GridView1.Rows[i].Cells[1].Text;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // idCollection.Add(strID);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //}</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //if (idCollection.Count > 0)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //{</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // //Call the method to Delete records</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // DeleteMultipleRecords(idCollection);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // // rebind the GridView</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // GridView1.DataBind();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //}</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //else</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //{</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // lblmessage.Text = "Please select any row to delete";</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //}</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// private void DeleteMultipleRecords(StringCollection idCollection)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">//{</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// //Create sql Connection and Sql Command</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">//SqlConnection con = new SqlConnection(strConnection);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">//SqlCommand cmd = new SqlCommand();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">//string IDs = "";</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// foreach (string id in idCollection)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// IDs += id.ToString() + ",";</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// try</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// string test = IDs.Substring</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// (0, IDs.LastIndexOf(","));</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// string sql = "Delete fromtable"_name +" WHERE uid in (" + test</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">//+ ")";</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// cmd.CommandType = CommandType.Text;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// cmd.CommandText = sql;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// cmd.Connection = con;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// con.Open();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// cmd.ExecuteNonQuery();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// catch (SqlException ex)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// string errorMsg = "Error in Deletion";</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// errorMsg += ex.Message;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// throw new Exception(errorMsg);</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// finally</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// con.Close();</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">// }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void chkSelect_CheckedChanged(object sender, EventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> CheckBox chkTest = (CheckBox)sender;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> GridViewRow grdRow = (GridViewRow)chkTest.NamingContainer;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> grdRow.BackColor = Color.Red;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Label lblfrom = (Label)grdRow.FindControl("lblfrom");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> Label lblto = (Label)grdRow.FindControl("lblto");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (chkTest.Checked)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lblfrom.ForeColor = System.Drawing.Color.Black;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lblto.ForeColor = System.Drawing.Color.Black;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> else</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> grdRow.BackColor = Color.White;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lblfrom.ForeColor = System.Drawing.Color.Blue;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> lblto.ForeColor = System.Drawing.Color.Blue;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void CheckBox1_CheckedChanged(object sender, EventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> foreach (GridViewRow rs in GridView1.Rows)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> CheckBox chkUncheck = (CheckBox)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> rs.FindControl("chkSelect");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> if (chkUncheck.Checked)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> { chkUncheck.Checked = false; }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> else</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> { chkUncheck.Checked = true; }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //Label lblstatus = (Label)e.Row.FindControl("lblstatus");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //if (lblstatus.Text == "False")</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //{</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // Label lblfrom = (Label)e.Row.FindControl("lblfrom");</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> // e.Row.BackColor = Color.Gray;</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> //}</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> </span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> protected void CheckBox2_CheckedChanged(object sender, EventArgs e)</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> {</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;"> }</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;">}</span><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAVkMk9CYc-wGUOTEHuVyQQjjg_lVgy-HgRJCSR7H9lBg_ie1Cb4y9UOD_BR6JZqcUNznibtugVwwx5yhAjl_56mpEsX567OHEs9s41LoujPDJejH-dGaOGQ-sy0DM9u0Pz5tpArgPzlQe/s1600/mail.PNG" imageanchor="1" style="color: #b87209; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="66" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAVkMk9CYc-wGUOTEHuVyQQjjg_lVgy-HgRJCSR7H9lBg_ie1Cb4y9UOD_BR6JZqcUNznibtugVwwx5yhAjl_56mpEsX567OHEs9s41LoujPDJejH-dGaOGQ-sy0DM9u0Pz5tpArgPzlQe/s320/mail.PNG" style="border: none; position: relative;" width="320" /></a></div>
<br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px;" /><div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEy9blb37qlgejHHp3CyLAd0BadJ2IK1KCW7vYcX5f70khWPIsEr73bowqJL7ZtoAauNCCGg3xGzwjdc4QZOgbATwBumqnxWM_kBjPT-iXumfxTczqqZ3g4_qDvdFUgm3Vw1x__dMNlaYH/s1600/mail1.PNG" imageanchor="1" style="color: #b87209; margin-left: 1em; margin-right: 1em; text-decoration: none;"><img border="0" height="168" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEy9blb37qlgejHHp3CyLAd0BadJ2IK1KCW7vYcX5f70khWPIsEr73bowqJL7ZtoAauNCCGg3xGzwjdc4QZOgbATwBumqnxWM_kBjPT-iXumfxTczqqZ3g4_qDvdFUgm3Vw1x__dMNlaYH/s320/mail1.PNG" style="border: none; position: relative;" width="320" /></a></div>
</div>
</div>
Dotnetcodehttp://www.blogger.com/profile/15298647773007424216noreply@blogger.com1