<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3348792565469522358</id><updated>2024-08-29T12:27:21.889-07:00</updated><category term="C Language"/><category term="Career"/><category term="Tollywood"/><category term="Mobile"/><category term="Technology"/><category term="Movies"/><category term="Oracle"/><category term="Education"/><category term="Banks"/><category term="Android"/><category term="Cricket"/><category term="Sports"/><title type='text'>quick guide</title><subtitle type='html'>&lt;i&gt;Shows the way by Leading, Directing or Advising.&lt;/i&gt;</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default?start-index=26&amp;max-results=25'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>135</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-6840711330482789457</id><published>2013-07-11T00:41:00.002-07:00</published><updated>2013-07-11T00:41:35.017-07:00</updated><title type='text'>IBPS PO MT Common Written Examination for Probationary Officers Management Trainees 3 (III)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
IBPS has announced&amp;nbsp;&lt;strong style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: 13px; line-height: 20px; text-align: justify;&quot;&gt;Common Written Examination for Probationary Officers / Management Trainees 3.&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: 13px; line-height: 20px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: 13px; line-height: 20px; text-align: justify;&quot;&gt;Qualification : 60% in graduation&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: 13px; line-height: 20px; text-align: justify;&quot;&gt;Age: 23-18yrs&lt;/strong&gt;&lt;br /&gt;
&lt;strong style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: 13px; line-height: 20px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;strong style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: 13px; line-height: 20px; text-align: justify;&quot;&gt;For&amp;nbsp;&lt;/strong&gt;&lt;span style=&quot;color: #525252; font-family: Arial, Helvetica, sans-serif, Verdana, Geneva; font-size: x-small;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;Advertisement/Notification click&amp;nbsp;&lt;a href=&quot;http://ibps.in/career_pdf/CWE_PO_MT_III_Advt_08_07_2013.pdf&quot;&gt;http://ibps.in/career_pdf/CWE_PO_MT_III_Advt_08_07_2013.pdf&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/6840711330482789457/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2013/07/ibps-po-mt-common-written-examination.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6840711330482789457'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6840711330482789457'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2013/07/ibps-po-mt-common-written-examination.html' title='IBPS PO MT Common Written Examination for Probationary Officers Management Trainees 3 (III)'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-8773327492943189639</id><published>2012-11-01T03:37:00.001-07:00</published><updated>2012-11-01T03:37:56.686-07:00</updated><title type='text'>LG GOOGLE NEXUS 4 FULL SPECIFICATIONS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;5&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;GENERAL&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/network-bands.php3&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;2G Network&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;GSM 850 / 900 / 1800 / 1900&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/network-bands.php3&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;3G Network&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;HSDPA 850 / 900 / 1700 / 1900 / 2100&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=sim&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;SIM&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Micro-SIM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/lg_nexus_4_e960-5048.php#&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Announced&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;2012, October&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/lg_nexus_4_e960-5048.php#&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Status&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Coming soon. Exp. release 2012, November&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;2&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;BODY&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/lg_nexus_4_e960-5048.php#&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Dimensions&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;133.9 x 68.7 x 9.1 mm (5.27 x 2.70 x 0.36 in)&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/lg_nexus_4_e960-5048.php#&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Weight&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;139 g (4.90 oz)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;4&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;DISPLAY&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=display-type&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Type&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;True HD IPS Plus capacitive touchscreen, 16M colors&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/lg_nexus_4_e960-5048.php#&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Size&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;768 x 1280 pixels, 4.7 inches (~318 ppi pixel density)&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=multitouch&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Multitouch&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=screen-protection&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Protection&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Corning Gorilla Glass 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;3&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;SOUND&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=call-alerts&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Alert types&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Vibration; MP3, WAV ringtones&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=loudspeaker&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Loudspeaker&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=audio-jack&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;3.5mm jack&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;2&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;MEMORY&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=memory-card-slot&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Card slot&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=dynamic-memory&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Internal&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;8/16 GB storage, 2 GB RAM&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;9&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;DATA&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=gprs&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;GPRS&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=edge&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;EDGE&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=3g&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Speed&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;DC-HSDPA, 42 Mbps; HSDPA, 21 Mbps; HSUPA, 5.76 Mbps&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=wi-fi&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;WLAN&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Wi-Fi 802.11 a/b/g/n, dual-band, DLNA, Wi-Fi hotspot&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=bluetooth&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Bluetooth&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes, v4.0 with A2DP&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=nfc&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;NFC&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=usb&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;USB&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes, microUSB (MHL) v2.0&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;4&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;CAMERA&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=camera&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Primary&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;8 MP, 3264 x 2448 pixels, autofocus, LED flash&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=camera&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Features&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Touch focus, geo-tagging, face detection, photo sphere&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=camera&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Video&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes, 1080p@30fps&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=video-call&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Secondary&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes, 1.3 MP&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;14&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;FEATURES&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=os&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;OS&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Android OS, v4.2 (Jelly Bean)&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=chipset&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Chipset&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Qualcomm APQ8064 Snapdragon&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=cpu&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;CPU&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Quad-core 1.5 GHz Krait&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=gpu&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;GPU&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Adreno 320&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=sensors&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Sensors&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Accelerometer, gyro, proximity, compass, barometer&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=messaging&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Messaging&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;SMS(threaded view), MMS, Email, Push Mail, IM, RSS&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=browser&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Browser&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;HTML5&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=fm-radio&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Radio&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=gps&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;GPS&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes, with A-GPS support and GLONASS&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=java&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Java&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Yes, via Java MIDP emulator&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/lg_nexus_4_e960-5048.php#&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Colors&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Black&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;- SNS integration&lt;br /&gt;- Active noise cancellation with dedicated mic&lt;br /&gt;- TV-out (via MHL A/V link)&lt;br /&gt;- MP4/H.264/H.263 player&lt;br /&gt;- MP3/WAV/eAAC+/AC3 player&lt;br /&gt;- Organizer&lt;br /&gt;- Image/video editor&lt;br /&gt;- Document viewer&lt;br /&gt;- Google Search, Maps, Gmail,&lt;br /&gt;YouTube, Calendar, Google Talk, Picasa&lt;br /&gt;- Voice memo/dial/commands&lt;br /&gt;- Predictive text input&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;3&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;BATTERY&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;Standard battery, Li-Po 2100mAh&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=stand-by-time&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Stand-by&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;(2G) / Up to 390 h (3G)&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=talk-time&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;Talk time&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-style: none; border-width: 0px 0px medium; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;(2G) / Up to 15 h (3G)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table cellspacing=&quot;0&quot; style=&quot;background-color: white; border-top-color: rgb(227, 227, 227); border-top-style: solid; border-width: 1px 0px 0px; color: black; font-family: Arial, sans-seirf; font: inherit; line-height: 11px; margin: 0px; padding: 0px; text-align: start; vertical-align: baseline; width: 476px;&quot;&gt;&lt;tbody style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;tr style=&quot;border: 0px; font-size: 11px; font: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;th rowspan=&quot;2&quot; scope=&quot;row&quot; style=&quot;background-attachment: scroll; background-color: #f6f6f6; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-right-style: none; border-width: 0px medium 0px 0px; color: #b23f33; font-family: Oswald; font-weight: normal; font: inherit; line-height: normal; margin: 0px; padding: 1px 6px; text-transform: uppercase; vertical-align: top; width: 55px;&quot;&gt;MISC&lt;/th&gt;&lt;td class=&quot;ttl&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; color: #7d7464; font-family: Arial; font-weight: bold; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top; width: 77px;&quot;&gt;&lt;a href=&quot;http://www.gsmarena.com/glossary.php3?term=sar&quot; style=&quot;border: 0px; color: #7d7464; font-size: 12px; font: inherit; margin: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;SAR US&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;nfo&quot; style=&quot;background-attachment: scroll; background-color: #fafafa; background-image: none; background-position: 0px 0px; background-repeat: repeat repeat; border-bottom-color: rgb(240, 240, 240); border-bottom-style: solid; border-width: 0px 0px 1px; font-family: Arial; font: inherit; line-height: 16px; margin: 0px; padding: 1px 6px; vertical-align: top;&quot;&gt;0.55 W/kg (head) &amp;nbsp; &amp;nbsp; 1.27 W/kg (body)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/8773327492943189639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2012/11/lg-google-nexus-4-full-specifications.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8773327492943189639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8773327492943189639'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2012/11/lg-google-nexus-4-full-specifications.html' title='LG GOOGLE NEXUS 4 FULL SPECIFICATIONS'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-3564949901975314819</id><published>2012-11-01T03:33:00.001-07:00</published><updated>2012-11-01T03:33:16.861-07:00</updated><title type='text'>APSRTC MECHANICAL SUPERVISORS TRAINEE (MST) RESULTS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
APSRTC MECHANICAL SUPERVISORS TRAINEE (MST) RESULTS RELEASED.&lt;br /&gt;
FOR RESULTS CLICK HERE:&lt;br /&gt;
&lt;a href=&quot;http://www.apsrtc.gov.in/MSTResults.pdf&quot; style=&quot;background-color: #ffd6a2; color: #ff6600; font-family: Arial, Helvetica, sans-serif; font-size: 13px;&quot; target=&quot;_blank&quot;&gt;Mechanical Supervisor Trainee (MST) - Schedule of Verification of Original Certificates and Publication of Final Key&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/3564949901975314819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2012/11/apsrtc-mechanical-supervisors-trainee.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/3564949901975314819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/3564949901975314819'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2012/11/apsrtc-mechanical-supervisors-trainee.html' title='APSRTC MECHANICAL SUPERVISORS TRAINEE (MST) RESULTS'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-9219231047187711128</id><published>2012-07-04T09:41:00.001-07:00</published><updated>2012-07-04T09:41:48.287-07:00</updated><title type='text'>APPSC Assistant Executive Engineers (AEE) paper 2 key</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, Tahoma, sans-serif; font-size: 14px; line-height: 22px; text-align: -webkit-auto;&quot;&gt;APSPSC Assistant Executive Engineers Recruitment 2012 for mechanical and civil key.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px; text-align: justify;&quot;&gt;Click here for paper 1:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.contentcarry.com/wp-content/uploads/2012/06/appsc-aee.pdf&quot; style=&quot;color: #2c78b9; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px; margin: 0px; outline: none; padding: 0px; text-align: justify; text-decoration: none;&quot;&gt;APPSC Assistant Executive Engineers (AEE) General Studies Question Paper Series – A&lt;/a&gt;
&lt;br /&gt;
&lt;br /&gt;
Click here for paper 2&amp;nbsp;&lt;span style=&quot;background-color: #efefaa; color: #232323; font-family: arial; font-size: 13px; line-height: 16px;&quot;&gt;PAPER - II (COMMON FOR CIVIL AND MECH. ENGG):&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 16px;&quot;&gt;&lt;span style=&quot;color: #232323; font-family: arial; font-size: x-small;&quot;&gt;&lt;a href=&quot;http://www.aceenggacademy.com/main/images/appsc2012/key/appsc_common_ce_me_paper_ii.pdf&quot;&gt;http://www.aceenggacademy.com/main/images/appsc2012/key/appsc_common_ce_me_paper_ii.pdf&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; line-height: 16px;&quot;&gt;I will update paper 3 soon.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/9219231047187711128/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2012/07/appsc-assistant-executive-engineers-aee.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/9219231047187711128'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/9219231047187711128'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2012/07/appsc-assistant-executive-engineers-aee.html' title='APPSC Assistant Executive Engineers (AEE) paper 2 key'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-8639628438871741712</id><published>2012-07-02T08:24:00.000-07:00</published><updated>2012-07-04T09:45:40.208-07:00</updated><title type='text'>APPSC Assistant Executive Engineers(AEE) Recruitment 2012</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, Tahoma, sans-serif; font-size: 14px; line-height: 22px; text-align: -webkit-auto;&quot;&gt;APPSC Assistant Executive Engineers Recruitment 2012 for mechanical and civil&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: Arial, Helvetica, Tahoma, sans-serif; font-size: 14px; line-height: 22px; text-align: -webkit-auto;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px; margin-bottom: 1.2em; padding: 0px; text-align: justify;&quot;&gt;
&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;APPSC Assistant Executive Engineers (AEE) General Studies &amp;amp; Mental ability Question Paper &amp;amp; Answer Key-&amp;nbsp;&lt;/span&gt;eenadupratibha.net&lt;span style=&quot;margin: 0px; padding: 0px;&quot;&gt;&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px; margin-bottom: 1.2em; padding: 0px; text-align: justify;&quot;&gt;
APPSC AEE written Test Paper -1consists General Studies &amp;amp; Mental ability 150 Questions for 150 Marks- – 150 Minutes&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px; margin-bottom: 1.2em; padding: 0px; text-align: justify;&quot;&gt;
Click here for&amp;nbsp;&lt;a href=&quot;http://www.contentcarry.com/wp-content/uploads/2012/06/appsc-aee.pdf&quot;&gt;APPSC Assistant Executive Engineers (AEE) General Studies Question Paper Series – A&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;margin-bottom: 1.2em; padding: 0px; text-align: justify;&quot;&gt;
&lt;div style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px;&quot;&gt;
Click here for&amp;nbsp;&lt;a href=&quot;http://www.contentcarry.com/wp-content/uploads/2012/06/key.pdf&quot;&gt;APPSC – AEE General Studies Answer KEY&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 21px;&quot;&gt;
Click here for paper 2 &amp;nbsp;&amp;nbsp;&lt;span style=&quot;background-color: #efefaa; color: #232323; font-family: arial; font-size: 13px; line-height: 16px; text-align: left;&quot;&gt;&lt;a href=&quot;http://www.aceenggacademy.com/main/images/appsc2012/key/appsc_common_ce_me_paper_ii.pdf&quot;&gt;PAPER - II (COMMON FOR CIVIL AND MECH. ENGG)&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/8639628438871741712/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2012/07/appsc-assistant-executive-engineersaee.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8639628438871741712'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8639628438871741712'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2012/07/appsc-assistant-executive-engineersaee.html' title='APPSC Assistant Executive Engineers(AEE) Recruitment 2012'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-7964198329291782963</id><published>2012-07-02T08:08:00.000-07:00</published><updated>2012-07-02T08:08:49.341-07:00</updated><title type='text'>Theme your Android Phone like a Super Boss (Galaxy Nexus)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Super cool &quot;super boss&quot; theme for your galaxy nexus.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/zQKjt1LGGT4?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
It makes your nexus looks like a real machine.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/7964198329291782963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2012/07/theme-your-android-phone-like-super.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/7964198329291782963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/7964198329291782963'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2012/07/theme-your-android-phone-like-super.html' title='Theme your Android Phone like a Super Boss (Galaxy Nexus)'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-4350641188006103108</id><published>2011-12-25T06:08:00.001-08:00</published><updated>2011-12-25T06:12:09.844-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Introduction To Storage Classes</title><content type='html'>strong class provides information about their location and&lt;br /&gt;visibility.The storage class decides the portion of the &lt;br /&gt;program within which the variables are recognized.&lt;br /&gt;A variables storage class tells us&lt;br /&gt;&lt;br /&gt;1.where the variables would be stored.&lt;br /&gt;2.What will be the initial value of the variable,if the &lt;br /&gt;initial value is not specifically assigned.&lt;br /&gt;3.What is the scope of the variable i.e., which functions &lt;br /&gt;the value of the variable would be available.&lt;br /&gt;4.What is the lifetime of the variable, i.e., how long the&lt;br /&gt; variable exist.&lt;br /&gt;There are 4 types of storage classes in C.&lt;br /&gt;1.Automatic&lt;br /&gt;2.Static&lt;br /&gt;3.External&lt;br /&gt;4.Register</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/4350641188006103108/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/12/inroduction-to-storage-classes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/4350641188006103108'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/4350641188006103108'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/12/inroduction-to-storage-classes.html' title='Introduction To Storage Classes'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-2132105843947236546</id><published>2011-12-25T06:01:00.000-08:00</published><updated>2011-12-25T06:02:04.816-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Problems In Structures</title><content type='html'>typedef struct&lt;br /&gt; {&lt;br /&gt;  int data;&lt;br /&gt;  NODEPTR link;&lt;br /&gt; }*NODEPTR;&lt;br /&gt;  A typedef defines a new name for a type and in similar&lt;br /&gt;cases like the one shown below you can define a new &lt;br /&gt;structure type and a typedef for it at the same time.&lt;br /&gt;      typedef struct&lt;br /&gt;      {&lt;br /&gt; char name[20];&lt;br /&gt;  int age;&lt;br /&gt;      }emp;&lt;br /&gt;      typedef struct&lt;br /&gt;      {&lt;br /&gt; int data;&lt;br /&gt; NODEPTR link;&lt;br /&gt;      }*NODEPTR;&lt;br /&gt;  There is no error in this because a typedef declaration&lt;br /&gt;cannot be used until it is defined.In the given code &lt;br /&gt;fragment the typedef declaration is not yet defined at the&lt;br /&gt;point where the link file is declared.To eliminate this &lt;br /&gt;problem ,first give the structure a name(&quot;struct node&quot;).Then&lt;br /&gt;declare the link field as a simple struct node as shown &lt;br /&gt;below:&lt;br /&gt;&lt;br /&gt;typedef struct node&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;int data;&lt;br /&gt;struct node *link;&lt;br /&gt;}*NODEPTR;&lt;br /&gt;   Another way to eliminate this problem is to disentangle&lt;br /&gt;the typedef declaration from the structure definition as&lt;br /&gt;   struct node&lt;br /&gt;    {&lt;br /&gt;     int data;&lt;br /&gt;     struct node *link;&lt;br /&gt;    }; &lt;br /&gt;   typedef struct node *NODEPTR;&lt;br /&gt;Another way is to precede the struct declaration with the&lt;br /&gt;typedef ,in which case we would use the NODEPTR typedef &lt;br /&gt;when declaring the link field as&lt;br /&gt;    typedef struct node *NODEPTR&lt;br /&gt; struct node&lt;br /&gt; {&lt;br /&gt; int data;&lt;br /&gt; NODEPTR next;&lt;br /&gt; };&lt;br /&gt;  &lt;br /&gt;   In this case ,we declare a new typedef name involving&lt;br /&gt;struct node even though struct node has not been completely&lt;br /&gt;defined yet,this allowed to do.&lt;br /&gt;&lt;br /&gt;2.void modify(struct emp *);&lt;br /&gt;  struct emp&lt;br /&gt;  {&lt;br /&gt;  char name[20];&lt;br /&gt;  int age;&lt;br /&gt;  };&lt;br /&gt;  main()&lt;br /&gt;  {&lt;br /&gt;  struct emp e={&quot;sanjay&quot;,4};&lt;br /&gt;  modify( &amp;e);&lt;br /&gt;  printf(&quot;\n %s%d&quot;,e.name,e.age);&lt;br /&gt;  }&lt;br /&gt;  void modify(struct emp *p)&lt;br /&gt;  {&lt;br /&gt;   strupr(struct emp *p)&lt;br /&gt;   p-&gt;age=p-&gt;age+2;&lt;br /&gt;  }</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/2132105843947236546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/12/problems-in-structures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2132105843947236546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2132105843947236546'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/12/problems-in-structures.html' title='Problems In Structures'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-7947960413415494937</id><published>2011-12-25T06:00:00.000-08:00</published><updated>2011-12-25T06:01:18.514-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Pointers And Structures In C Language</title><content type='html'>We know that the name of an array stands for the address of its zeroth element.The samething is true of the names of arrays of structure variables.Suppose product is an array variable of structtype.The name product represents the address of its zeroth element consider the following declaration.&lt;br /&gt;&lt;br /&gt;  struct inventory&lt;br /&gt;  {&lt;br /&gt;   char name[30];&lt;br /&gt;   int number;&lt;br /&gt;   float price;&lt;br /&gt;  } product[2],*ptr;&lt;br /&gt;  This statement declares product s an array of two elements,each of the type struct inventory and ptr as a pointer to data objects of the type struct inventory.&lt;br /&gt;The assignment&lt;br /&gt; ptr=product;&lt;br /&gt;  would assign the address of the zeroth element of &lt;br /&gt;product to ptr.This is,the pointer ptr will now point to&lt;br /&gt;product[0].Its members can be accessed using the following&lt;br /&gt;notation.&lt;br /&gt;        ptr --&gt; name&lt;br /&gt; ptr--&gt; number&lt;br /&gt; ptr --&gt; price&lt;br /&gt;  The symbol --&gt;is called the arrow operator and is made &lt;br /&gt;up of a minus sign and a greater than sign.Note that ptr--&gt;&lt;br /&gt;is simply another way f wrting product[0].When the pointer&lt;br /&gt;ptr is incremented by one,it is made to point to the next &lt;br /&gt;record. i.e,product[1].We could use the notation&lt;br /&gt; (*ptr).number&lt;br /&gt;  to access the member number.The parantheses around *ptr&lt;br /&gt;are necessary because the member operator &quot;.&quot; has a &lt;br /&gt;higher precedence than the operator *&lt;br /&gt;&lt;br /&gt;  A program to illustrate the use of a structure pointer&lt;br /&gt;to manipulate the elements of an array of structures the &lt;br /&gt;program highlights all the features discussed above.Note &lt;br /&gt;that the pointer ptr(of type struct invert) is also used &lt;br /&gt;as the loop control index in for loops</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/7947960413415494937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/12/pointers-and-structures-in-c-language.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/7947960413415494937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/7947960413415494937'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/12/pointers-and-structures-in-c-language.html' title='Pointers And Structures In C Language'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-2050436600359218487</id><published>2011-09-26T09:54:00.002-07:00</published><updated>2011-09-26T09:55:12.254-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Additional Features Of Structures</title><content type='html'>The values of structure variables can be assigned to another&lt;br /&gt;structure variable of the same type using the assignment &lt;br /&gt;operators. It is not necessary to copy the structure elements&lt;br /&gt;piecemeal. &lt;br /&gt;&lt;br /&gt;1.&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt; struct employee&lt;br /&gt; {&lt;br /&gt;    char name[10];&lt;br /&gt;    int age; &lt;br /&gt;    float sal;&lt;br /&gt; };&lt;br /&gt; struct employee e1={&quot;sanjay&quot;,30,1000.00};&lt;br /&gt; struct employee e2,e3;&lt;br /&gt;/* piecemeal copying*/&lt;br /&gt;strcpy(e2.name,e1.name);&lt;br /&gt;e2.age=e1.age;&lt;br /&gt;e2.sal=e1.sal;&lt;br /&gt;/*copying all elements at one time */&lt;br /&gt;e3=e2;&lt;br /&gt;printf(&quot;\n %s %d %f&quot;,e1.name,e1.age,e1.sal);&lt;br /&gt;printf(&quot;\n%s %d %f&quot;,e2.name,e2.age,e2.sal);&lt;br /&gt;printf(&quot;\n%s %d %f&quot;,e3.name,e3.age,e3.sal);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;       sanjay 30 1000.0000&lt;br /&gt;       sanjay 30 1000.0000&lt;br /&gt;       sanjay 30 1000.0000&lt;br /&gt;&lt;br /&gt;    For copying arrays we have to copy the contents of the&lt;br /&gt;array element by element.This copying of all structure elements&lt;br /&gt;at one time has been possible only because the structure &lt;br /&gt;elements are stored in contiguous memory locations.&lt;br /&gt;&lt;br /&gt;2.One structure can be nested within another structure.Using&lt;br /&gt; this facility complex data types can be Created.&lt;br /&gt;&lt;br /&gt;   Main()&lt;br /&gt;   {&lt;br /&gt;    struct address&lt;br /&gt;    {&lt;br /&gt;     char phoneno[15];&lt;br /&gt;     char city[30];&lt;br /&gt;     int pin;&lt;br /&gt;    };&lt;br /&gt;    struct emp&lt;br /&gt;    {&lt;br /&gt;     char name[];&lt;br /&gt;     struct address a;&lt;br /&gt;    };&lt;br /&gt;    struct emp e={&quot;sneha&quot;,&quot;531046&quot;,&quot;Texas&quot;,507};&lt;br /&gt;    printf(&quot;\n name=%s phone=%s&quot;,e.name,e.a.phoneno);&lt;br /&gt;    printf(&quot;\n city=%spin=%d&quot; ,e.a.city,e.a.pin);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;         name=sneha phone=531046&lt;br /&gt;         city=Texas     pin=507</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/2050436600359218487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/additional-features-of-structures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2050436600359218487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2050436600359218487'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/additional-features-of-structures.html' title='Additional Features Of Structures'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-3198151175704433432</id><published>2011-09-26T09:54:00.001-07:00</published><updated>2011-09-26T09:54:43.675-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Arrays With In The Structures</title><content type='html'>C permits the use of arrays as structure members.we can&lt;br /&gt;use single or multidimensional arrays of type int or float.&lt;br /&gt;Ex:   struct marks&lt;br /&gt;      {&lt;br /&gt;        int number;&lt;br /&gt;        float subject[3];&lt;br /&gt;        student[2];&lt;br /&gt;      }&lt;br /&gt;  here,the member subject contains 3 elements,subject[0],&lt;br /&gt;subject[1] and subject[2].These elements can be accessed&lt;br /&gt;using appropriate subscripts. For example ,the name &lt;br /&gt;student[1].subject[2]; would refer to the marks obtained&lt;br /&gt;in the third subject by the second student.&lt;br /&gt;&lt;br /&gt; We can use arrays inside the structures. We can use single&lt;br /&gt;or multidimensional arrays of type int or float.For example,&lt;br /&gt;the following structure declaration is valid.&lt;br /&gt;   struct marks&lt;br /&gt;   {&lt;br /&gt;    int number;&lt;br /&gt;    float subject[3];&lt;br /&gt;   }student[3];&lt;br /&gt;&lt;br /&gt;   Here,the member subject contains 3 elements,subject[0],&lt;br /&gt;subject[1] and subject[2].These elements can be accessed  &lt;br /&gt;using subscripts like student[1].subject[2];would refer to &lt;br /&gt;the marks obtained in the third subject by the second &lt;br /&gt;student.&lt;br /&gt;/*Arrays Within The Structures*/&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;struct marks&lt;br /&gt;{&lt;br /&gt;int sub[3];&lt;br /&gt;int total;&lt;br /&gt;};&lt;br /&gt;static struct marks student[3]={45,67,81,0,75,53,&lt;br /&gt;                                69,0,57,36,71,0};&lt;br /&gt;static struct marks total;&lt;br /&gt;int i,j;&lt;br /&gt;for(i=0;i&lt;=2;i++)&lt;br /&gt;{&lt;br /&gt;for(j=0;j&lt;=2;j++)&lt;br /&gt;{&lt;br /&gt;student[i].total += student[i].sub[j];&lt;br /&gt;total.sub[j] +=student[i].sub[j];&lt;br /&gt;}&lt;br /&gt;total.total +=student[i].total;&lt;br /&gt;}&lt;br /&gt;printf(&quot;STUDENT TOTAL \n\n&quot;);&lt;br /&gt;for(i=0;i&lt;=2;i++)&lt;br /&gt;printf(&quot;student[%d] %d\n&quot;,i+1,student[i].total);&lt;br /&gt;printf(&quot;SUBJECT TOTAL \n\n&quot;);&lt;br /&gt;for(j=0;j&lt;=2;j++)&lt;br /&gt;printf(&quot;subject-%d %d\n&quot;,j+1,total.sub[j]);&lt;br /&gt;printf(&quot;\n Grand Total = %d\n&quot;,total.total);&lt;br /&gt;}&lt;br /&gt;OUTPUT:&lt;br /&gt;STUDENT              TOTAL&lt;br /&gt;student[1]         193&lt;br /&gt;student[1]  197 &lt;br /&gt;student[1]  164&lt;br /&gt;SUBJECT    TOTAL&lt;br /&gt;subject-1  177&lt;br /&gt;subject-2  156 &lt;br /&gt;subject-3  221&lt;br /&gt;Grand Total           =554</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/3198151175704433432/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/arrays-with-in-structures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/3198151175704433432'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/3198151175704433432'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/arrays-with-in-structures.html' title='Arrays With In The Structures'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-2332714847790822935</id><published>2011-09-26T09:53:00.002-07:00</published><updated>2011-09-26T09:54:14.548-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Structures and Functions</title><content type='html'>The main philosophy of C language is the use of functions.&lt;br /&gt;C supports the passing of structure values as arguments to &lt;br /&gt;function. In this ,the values of a structure can be &lt;br /&gt;transferred from one function to another by using 3 methods.&lt;br /&gt;  The first method is to pass each member of the structure as&lt;br /&gt;an actual argument of the function call. The actual arguments&lt;br /&gt;are then treated independently like ordinary variables.This &lt;br /&gt;method is inefficient when the structure size is large.&lt;br /&gt;  The second method involves passing of copy of entire &lt;br /&gt;structure to the called function.Here ,the function is working&lt;br /&gt;on a copy of the structure ,so any changes to structure member&lt;br /&gt;within the function are not reflected in the original &lt;br /&gt;structure (in the calling function).It is,therefore ,necessary&lt;br /&gt;for the function to return the entire structure back to the &lt;br /&gt;calling function. But all compilers may not support this &lt;br /&gt;method of passing the entire structure as a parameter.&lt;br /&gt;   The third method employs a concept called pointers to pass &lt;br /&gt;the structure as an argument. In this case,the address &lt;br /&gt;location of the structure is passed to the called function. &lt;br /&gt;This function can access the entire structure indirectly. This&lt;br /&gt;is smiler to the way ,arrays are passed to functions. This &lt;br /&gt;method is more efficient as compared to the second approach.&lt;br /&gt; The general format of sending a copy of a structure to the&lt;br /&gt;called function is:&lt;br /&gt;     function name(structure variable name)&lt;br /&gt;The called function takes the following form:&lt;br /&gt;     data-type function name(st-name)&lt;br /&gt;     struct-type st-name&lt;br /&gt;     {&lt;br /&gt;       - - - - -&lt;br /&gt;       --------&lt;br /&gt;       return (expression);&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;1. The called function must be declared for its type,&lt;br /&gt;appropriate to the data type it is expected to For example,&lt;br /&gt;if it is returning a copy of the entire structure,then it&lt;br /&gt;must be&lt;br /&gt;declared as struct with an appropriate tag name.&lt;br /&gt;2.The structure variable used as the actual argument and &lt;br /&gt;the corresponding formal argument in the called function&lt;br /&gt;must be of the same struct type.&lt;br /&gt;3.The return statement is necessary only if the function &lt;br /&gt;is returning some data .The expression may be any simple &lt;br /&gt;variable or structure variable or an expression using &lt;br /&gt;simple variables.&lt;br /&gt;4.When a function returns a structure it must be assigned&lt;br /&gt;to a structure of identical type in the calling function.&lt;br /&gt;5.The called function must be declared in the calling &lt;br /&gt;function for its type if it is placed after the calling &lt;br /&gt;function.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/2332714847790822935/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/structures-and-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2332714847790822935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2332714847790822935'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/structures-and-functions.html' title='Structures and Functions'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-7694763901432991532</id><published>2011-09-26T09:53:00.001-07:00</published><updated>2011-09-26T09:53:41.665-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Inroduction To Structures</title><content type='html'>Arrays can be used to represent a group of data items&lt;br /&gt;that belong to same type,such as int or float.However,&lt;br /&gt;If we want to represent a collection of data items of&lt;br /&gt;different types using a single name,then we cannot use&lt;br /&gt;arrays.At this time,we use structures.Structure is used&lt;br /&gt;to represent a set of attributes,such as student_name,&lt;br /&gt;roll_number and marks.The individual structure elements&lt;br /&gt;are referred to as members.&lt;br /&gt;&lt;br /&gt;  Consider a book database consisting of book name,&lt;br /&gt;author,number of pages and price. We can define a &lt;br /&gt;structure to hold this information as follows.&lt;br /&gt;&lt;br /&gt;        struct book_bank&lt;br /&gt;        {&lt;br /&gt;   char title[20];&lt;br /&gt;         char author[15];&lt;br /&gt; int pages;&lt;br /&gt; float price;&lt;br /&gt;        };&lt;br /&gt;&lt;br /&gt;  The keyword ‘struct’ declares a structure to hold the&lt;br /&gt;details of four fields,namely title,author,pages and &lt;br /&gt;price. These fields are nothing but members of structure&lt;br /&gt;elements.Each member may belong to a different type of &lt;br /&gt;data. book_bank is the name of the structure and is &lt;br /&gt;called the structure tag.This will be used to declare &lt;br /&gt;variables that have tag’s structure.&lt;br /&gt;     This declaration has not declared any variable. It&lt;br /&gt;simply describes a format called template to represent&lt;br /&gt;information as follows.......&lt;br /&gt;       struct book_bank&lt;br /&gt; title           array of 20 char’s&lt;br /&gt;        author          array of 15 char’s&lt;br /&gt;        pages           integer&lt;br /&gt;        price           float&lt;br /&gt;&lt;br /&gt;      general declaration of a structure&lt;br /&gt;&lt;br /&gt;     struct tag_name&lt;br /&gt;     {&lt;br /&gt;        data_type member1;&lt;br /&gt;        data_type member2;&lt;br /&gt;         ------------&lt;br /&gt;         ------------&lt;br /&gt;     }&lt;br /&gt;  we can declare structure variables using the tag name &lt;br /&gt;any where in the program.For example, struct book_bank,&lt;br /&gt;book_bank1,book_bank2, book_bank3;&lt;br /&gt;each one of these variables has 4 members as specified&lt;br /&gt;by the template.The complete declaration is like ....&lt;br /&gt;  struct book_bank&lt;br /&gt;  {&lt;br /&gt;   char title[20];&lt;br /&gt;   int  author[15];&lt;br /&gt;   int pages;&lt;br /&gt;   float price;&lt;br /&gt;  };&lt;br /&gt;  struct book_bank book1,book2,book3,book3;&lt;br /&gt;&lt;br /&gt;These members do not occupy any memory until they are &lt;br /&gt;associated with the structure variables such as book1.&lt;br /&gt;&lt;br /&gt; In defining structure we may follow the syntax &lt;br /&gt;&lt;br /&gt; 1.The template is terminated with a semicolon.&lt;br /&gt; 2.While the entire declaration is considered as a &lt;br /&gt;   statement, each member is declared independently for&lt;br /&gt;   its name and type in a separate statement inside the&lt;br /&gt;   template.&lt;br /&gt; 3.The tag name such as book_bank can be used to declare&lt;br /&gt;   structure variables of its type,later in the program.&lt;br /&gt;&lt;br /&gt; Normally structure definitions appear at the beginning &lt;br /&gt;of the program profile,before any variables or functions &lt;br /&gt;are defined. They also appear before the main,along with&lt;br /&gt;macro definitions such as #define.&lt;br /&gt;  We can assign values to the member of a structure in a&lt;br /&gt;no. of ways. The link between a member and a variable is&lt;br /&gt;established using the member operator.Which is also known&lt;br /&gt;as dot period or&lt;br /&gt; period operator.&lt;br /&gt;&lt;br /&gt;For example, &lt;br /&gt;         book1.price&lt;br /&gt;    is the variable representing the price of book1 and &lt;br /&gt;can be treated like anyother ordinary variable.&lt;br /&gt;            Strcpy(book1.title,&quot;BASIC&quot;);&lt;br /&gt;            book1.pages=250;&lt;br /&gt;  Like any other  data type,a structure variable can be &lt;br /&gt;initialized. A structure must be declared as static if &lt;br /&gt;it is to be initialized inside a function.&lt;br /&gt;&lt;br /&gt;  main()&lt;br /&gt;  { &lt;br /&gt;    static struct;&lt;br /&gt;    {&lt;br /&gt;      int wt;&lt;br /&gt;      float  ht;&lt;br /&gt;    }&lt;br /&gt;    student ={60,180.75};&lt;br /&gt;  }  &lt;br /&gt;    we can initialize a structure by using different ways.&lt;br /&gt;    main()&lt;br /&gt;    { &lt;br /&gt;     struct st_record;&lt;br /&gt;     {&lt;br /&gt;       int wt;&lt;br /&gt;       float  ht;&lt;br /&gt;     }&lt;br /&gt;     static struct st_record student1={60,170.75};&lt;br /&gt;     static struct st_record student2={63,170.65};&lt;br /&gt;    }  &lt;br /&gt;&lt;br /&gt;  Another method is to initialize a structure variable &lt;br /&gt;outside the function like...&lt;br /&gt;&lt;br /&gt;    struct st_record;&lt;br /&gt;    {&lt;br /&gt;       int wt;&lt;br /&gt;       float  ht;&lt;br /&gt;    }&lt;br /&gt;    student1={60,170.75};&lt;br /&gt;    main()&lt;br /&gt;    {&lt;br /&gt;     static struct st_record student2={63,170.65};&lt;br /&gt;    }&lt;br /&gt;   C language does not permit the initialization of &lt;br /&gt;individual structure members within the template. The &lt;br /&gt;initialization must be done only in the declaration of &lt;br /&gt;the actual variables.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/7694763901432991532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/inroduction-to-structures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/7694763901432991532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/7694763901432991532'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/inroduction-to-structures.html' title='Inroduction To Structures'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-8197658202575154778</id><published>2011-09-26T09:52:00.002-07:00</published><updated>2011-09-26T09:53:06.881-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Questions On Pointers Through Structures</title><content type='html'>1.Can a structure contain a pointer to itself ?&lt;br /&gt;Ans:Certainly such structures are known as self &lt;br /&gt;referential structures &lt;br /&gt;&lt;br /&gt;2.What would be the output of the following program ?&lt;br /&gt;  main( )&lt;br /&gt;   {&lt;br /&gt;     struct emp&lt;br /&gt;     {&lt;br /&gt;      char *n;&lt;br /&gt;      int age;&lt;br /&gt;      }&lt;br /&gt;      &lt;br /&gt;      struct emp e1={&quot;dravid&quot;,123};&lt;br /&gt;      struct emp e2=e1;&lt;br /&gt;      strupr(e2.n);&lt;br /&gt;      prntf(&quot;\n%s&quot;,e1n);&lt;br /&gt;      }&lt;br /&gt;Ans: DRAVID&lt;br /&gt;3.If the following structure is written to a file usng &lt;br /&gt;fwrite( ) ,can fread( ) read it back successfully ?&lt;br /&gt;Ans: No,Since the structure contains a char pointer &lt;br /&gt;while writting the structure to &lt;br /&gt;the disk using fwrite( )&lt;br /&gt;only the value stored in the pointer would get written.&lt;br /&gt;When  this structure is read back the address would be &lt;br /&gt;read back but it is quite unlikely that the desired &lt;br /&gt;string would be present at this adress in memory.&lt;br /&gt;4.What is the output of the following program:&lt;br /&gt;  main()&lt;br /&gt;  {&lt;br /&gt;    struct a&lt;br /&gt;    {&lt;br /&gt;     char ch[7];&lt;br /&gt;     char *str;&lt;br /&gt;     };&lt;br /&gt;     static struct a s1={&quot;Nagpur&quot;,&quot;Bombay&quot;};&lt;br /&gt;     printf(&quot;%c%c\n&quot;,s1.ch[0],*s1.str);&lt;br /&gt;     printf(&quot;%s%s\n&quot;,s1.ch,s1.str);&lt;br /&gt;     }&lt;br /&gt;Output: N B&lt;br /&gt; Nagpur Bombay &lt;br /&gt;5.what is the output of the following program?&lt;br /&gt;  main()&lt;br /&gt;  {&lt;br /&gt;    struct s1&lt;br /&gt;    {&lt;br /&gt;      char *z;&lt;br /&gt;      int i;&lt;br /&gt;      struct s1 *p;&lt;br /&gt;    };&lt;br /&gt;    static struct s1 a[]={&lt;br /&gt;                           {&quot;Nagpur&quot;,1,a+1};&lt;br /&gt;      {&quot;Raipur&quot;,2,a+2};&lt;br /&gt;      {Kanpur&quot;,3,a}&lt;br /&gt;    };&lt;br /&gt;    struct s1 *ptr=a;&lt;br /&gt;    printf(&quot;%s%s%s\n&quot;,a[0].z,ptr-&gt;z,a[2]p-z);&lt;br /&gt;   }&lt;br /&gt; 6.What is the output of the following program?&lt;br /&gt; main( )&lt;br /&gt; {&lt;br /&gt;   struct node&lt;br /&gt;   {&lt;br /&gt;      int data;&lt;br /&gt;      struct node *link;&lt;br /&gt;   };&lt;br /&gt;   struct node *p,*q;&lt;br /&gt;   p=malloc(sizeof(struct node));&lt;br /&gt;   q=malloc(sizeof(struct node));&lt;br /&gt;   printf(&quot;%d%d&quot;,sizeof(p),sizeof(q));&lt;br /&gt; }&lt;br /&gt; Output:  22</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/8197658202575154778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/questions-on-pointers-through.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8197658202575154778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8197658202575154778'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/questions-on-pointers-through.html' title='Questions On Pointers Through Structures'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-808917454011166896</id><published>2011-09-26T09:52:00.001-07:00</published><updated>2011-09-26T09:52:36.188-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Pointers And Structures</title><content type='html'>We know that the name of an array stands for the address of&lt;br /&gt;its zeroth element.The samething is true of the names of &lt;br /&gt;arrays of structure variables.Suppose product is an array &lt;br /&gt;variable of structtype.The name product represents the &lt;br /&gt;address of its zeroth element consider the following &lt;br /&gt;declaration.&lt;br /&gt;&lt;br /&gt;  struct inventory&lt;br /&gt;  {&lt;br /&gt;     char name[30];&lt;br /&gt;     int number;&lt;br /&gt;     float price;&lt;br /&gt;  } &lt;br /&gt;  product[2],*ptr;&lt;br /&gt; This statement declares product s an array of two elements,&lt;br /&gt;each of the type struct inventory and ptr as a pointer to &lt;br /&gt;data objects of the type struct inventory.&lt;br /&gt;&lt;br /&gt;  The assignment&lt;br /&gt; ptr=product;&lt;br /&gt;  would assign the address of the zeroth element of product&lt;br /&gt;to ptr.This is,the pointer ptr will now point to product[0].&lt;br /&gt;Its members can be accessed using the following notation.&lt;br /&gt;   &lt;br /&gt;     ptr --&gt; name&lt;br /&gt;     ptr--&gt; number&lt;br /&gt;     ptr --&gt; price&lt;br /&gt;    The symbol --&gt;is called the arrow operator and is made &lt;br /&gt;up of a minus sign and a greater than sign.Note that ptr--&gt;&lt;br /&gt;is simply another way f wrting product[0].When the pointer&lt;br /&gt;ptr is incremented by one,it is made to point to the next &lt;br /&gt;record. i.e,product[1].&lt;br /&gt; We could use the notation&lt;br /&gt; (*ptr).number&lt;br /&gt;  to access the member number.The parantheses around *ptr&lt;br /&gt;are necessary because the member operator &quot;.&quot; has a higher&lt;br /&gt;precedence than the operator *&lt;br /&gt;&lt;br /&gt;  A program to illustrate the use of a structure pointer &lt;br /&gt;to manipulate the elements of an array of structures the &lt;br /&gt;program highlights all the features discussed above.Note &lt;br /&gt;that the pointer ptr(of type struct invert) is also used&lt;br /&gt;as the loop control index in for loops&lt;br /&gt;&lt;br /&gt;struct invent&lt;br /&gt;{&lt;br /&gt;    char *name[20];&lt;br /&gt;    int number;&lt;br /&gt;    float price;&lt;br /&gt;};&lt;br /&gt;  main( )&lt;br /&gt;  {&lt;br /&gt;    struct invent product[3],*ptr;&lt;br /&gt;    printf(&quot;INPUT\n\n&quot;);&lt;br /&gt;    for(ptr=product;ptr lessthan product+3;ptr++)&lt;br /&gt;    scannf(&quot;%s%d%f&quot;,ptr-&gt;name,ampercent ptr-&gt;number,&lt;br /&gt;             ampercent ptr-&gt;price);&lt;br /&gt;    printf(&quot;\n  OUTPUT\n\n&quot;);&lt;br /&gt;    ptr=product;&lt;br /&gt;    while(ptr lessthan product+3)&lt;br /&gt;    {&lt;br /&gt;      printf(&quot;% -20s %5d %102f\n&quot;,ptr-&gt;name,&lt;br /&gt;              ptr-&gt;number,ptr-&gt;price);&lt;br /&gt;      ptr++;&lt;br /&gt;    }&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt; Output:&lt;br /&gt; INPUT&lt;br /&gt;     Washing-machine 5  7500&lt;br /&gt;     Electric-iron   12 350&lt;br /&gt;     Two-in-one      7  1250&lt;br /&gt;&lt;br /&gt; OUTPUT:&lt;br /&gt;     Washing-machine  5  7500.00&lt;br /&gt;     Electric-iron    12 350&lt;br /&gt;     Two-in-one       7  1250.00&lt;br /&gt;  &lt;br /&gt;    While using structure pointers, we should take care&lt;br /&gt;of the precedence of operators.&lt;br /&gt;   The operators &#39;-&gt;&#39;, &#39;.&#39;,(),[] enjoy higher priority &lt;br /&gt;among the operators.They  bind very tightly with thier&lt;br /&gt;operands&lt;br /&gt; For example,given the definition&lt;br /&gt;     struct &lt;br /&gt;          {&lt;br /&gt;            int count;&lt;br /&gt;            float *p;&lt;br /&gt;            *ptr &lt;br /&gt;          }&lt;br /&gt;     then the statement ++ptr-&gt;count;&lt;br /&gt;     increments count,not ptr however,&lt;br /&gt;(++ptr)-&gt;count; increments ptr first,and&lt;br /&gt;then links count the statement&lt;br /&gt;ptr++-&gt;count;increments ptr first,and then&lt;br /&gt;links count the statement&lt;br /&gt;ptr++-&gt;count; is legal and increments ptr &lt;br /&gt;after accessing count.The following statements also behave&lt;br /&gt;in the similar fashion.&lt;br /&gt;*ptr-&gt;p   Fetches whatever p points to &lt;br /&gt;*ptr-p++  Increments p after accessing what&lt;br /&gt;ever it points to&lt;br /&gt;(*ptr-&gt;p)++  Increments  whatever p points to&lt;br /&gt;*ptr++-&gt;p Increments ptr after accessing &lt;br /&gt;whatever it points to.&lt;br /&gt;   Passing of a structure as an argument to a function or a&lt;br /&gt;function recieves a copy of an entire structure and returns &lt;br /&gt;it after working on it.This method is inefficient in terms &lt;br /&gt;of both.The execution speed and memory.&lt;br /&gt;    We can overcome this drawback by passing a pointer to &lt;br /&gt;the structure and then using this pointer to work on the &lt;br /&gt;structure members.Consider the following function:&lt;br /&gt;     Print_invent(item)&lt;br /&gt;     struct invent *item;&lt;br /&gt;     { printf(&quot;Name:%s\n&quot;,item-&gt;name);&lt;br /&gt;        printf(&quot;price:%f\n&quot;,item-&gt;price);&lt;br /&gt;     }&lt;br /&gt;   this function can be called by&lt;br /&gt;     print_invent(&amp;product)&lt;br /&gt;   The ormal argument item recieves the address of the &lt;br /&gt;structure product an therefore it must be declared as a &lt;br /&gt;pointer of type struct invent,which represents the &lt;br /&gt;structure of product.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/808917454011166896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/pointers-and-structures.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/808917454011166896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/808917454011166896'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/pointers-and-structures.html' title='Pointers And Structures'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-2938519722431230696</id><published>2011-09-26T09:47:00.000-07:00</published><updated>2011-09-26T09:52:02.341-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Two Dimensional Array Of Characters</title><content type='html'>Our example program asks you to type your name.When you&lt;br /&gt;do so,it checks against a master&lt;br /&gt; list to see if you&lt;br /&gt;are worthy of entry to the palace.&lt;br /&gt;&lt;br /&gt;Example:    &lt;br /&gt;&lt;br /&gt;  #include &quot;string.h&quot;&lt;br /&gt;  #define FOUND 1&lt;br /&gt;  #define NOTFOUND 0&lt;br /&gt;  main()&lt;br /&gt;  {&lt;br /&gt;   char masterlist[6][10]={&quot;srujana&quot;,&lt;br /&gt;                           &quot;sneha&quot;,&lt;br /&gt;                           &quot;swathi&quot;,&lt;br /&gt;                           &quot;lavanya&quot;,&lt;br /&gt;                           &quot;ramya&quot;,&lt;br /&gt;                           &quot;kalyani&quot;&lt;br /&gt;                          };&lt;br /&gt;   int i,flag,a;&lt;br /&gt;   char yourname[10];&lt;br /&gt;   printf(&quot;\n Enter your name:&quot;);&lt;br /&gt;   scanf(&quot;%s&quot;,yourname);&lt;br /&gt;   flag=NOTFOUND;&lt;br /&gt;   for(i=0;i&lt;=5;i++)&lt;br /&gt;   {&lt;br /&gt;     a=strcmp(&amp;masterlist[i][0],yourname);&lt;br /&gt;     if(a==0)&lt;br /&gt;     {&lt;br /&gt;      printf(&quot;welcome,u can enter the palace&quot;);&lt;br /&gt;      flag=FOUND;&lt;br /&gt;      break;&lt;br /&gt;     }&lt;br /&gt;   }&lt;br /&gt;   if(flag==NOTFOUND)&lt;br /&gt;   printf(&quot;sorry,u r a trespasser&quot;);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;OUTPUT:&lt;br /&gt;Enter your name:keerthi&lt;br /&gt;sorry,u r a trespasser&lt;br /&gt;&lt;br /&gt;Enter your name:srujana&lt;br /&gt;welcome,u can enter the palace.&lt;br /&gt;&lt;br /&gt;Names can be supplied from keyboard as:&lt;br /&gt;       for(i=0;i&lt;=5;i++)&lt;br /&gt;       scanf(&quot;%s&quot;,&amp;masterlist[i][0]);&lt;br /&gt;     while comapring the strings through strcmp() note that&lt;br /&gt;the addresses of strings are being passed to strcmp().&lt;br /&gt;srujana\0  sneha\0  swathi\0 lavanya\0  ramya\0  kalyani\0&lt;br /&gt;1001         1011       1021       1031        1041     1051&lt;br /&gt;      Here 1001,1011,....are the base adresses of successive&lt;br /&gt;names. For example, even though 10 bytes are reserved for &lt;br /&gt;storing the name &quot;ramya&quot;, it occupies only 5 bytes. Thus 5 &lt;br /&gt;bytes go waste.&lt;br /&gt;&lt;br /&gt;ARRAY OF POINTERS TO STRINGS :&lt;br /&gt;&lt;br /&gt;    pointer variable always contains an address. Therefore, &lt;br /&gt;if we construct an array of pointers it would contain a &lt;br /&gt;number of addresses. Array of pointers can be stored as &lt;br /&gt;            char *names[]={&lt;br /&gt;                           &quot;srujana&quot;,&lt;br /&gt;                           &quot;sneha&quot;,&lt;br /&gt;                           &quot;swathi&quot;,&lt;br /&gt;                           &quot;lavanya&quot;,&lt;br /&gt;                           &quot;ramya&quot;,&lt;br /&gt;                           &quot;kalyani&quot;&lt;br /&gt;                          };&lt;br /&gt;    One reason to store strings in an array of pointers is&lt;br /&gt;to make more efficient use of available memory.&lt;br /&gt;&lt;br /&gt;LIMITATIONS OF ARRAY OF POINTERS TO STRINGS:&lt;br /&gt;    When  we are using a 2-D array of characters we are at &lt;br /&gt;liberty to either initialize the strings where we are declaring&lt;br /&gt;the array or receive the strings using scanf() function.&lt;br /&gt;&lt;br /&gt;Example:        main()&lt;br /&gt;  {&lt;br /&gt;  char *names[6];&lt;br /&gt;  int i;&lt;br /&gt;  for(i=0;i&lt;=5;i++)&lt;br /&gt;         {&lt;br /&gt;                  printf(&quot;\n enter name&quot;);&lt;br /&gt;                  scanf(&quot;%s&quot;,names[i]);   /*doesnot work*/&lt;br /&gt;                }&lt;br /&gt;                }&lt;br /&gt;     The program doesn&#39;t work because when we are declaring &lt;br /&gt;the  array it is containing garbage values. And it would be&lt;br /&gt;definitely wrong to send these garbage values to scanf() as&lt;br /&gt;the addresses where it should keep the strings received from&lt;br /&gt;the keyboard.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/2938519722431230696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/two-dimensional-array-of-characters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2938519722431230696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2938519722431230696'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/two-dimensional-array-of-characters.html' title='Two Dimensional Array Of Characters'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-8147288863839644170</id><published>2011-09-26T03:44:00.000-07:00</published><updated>2011-09-26T03:47:00.875-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Banks"/><category scheme="http://www.blogger.com/atom/ns#" term="Career"/><title type='text'>Registration date extended: ibps Clerical Cadre</title><content type='html'>Registration date extended: ibps Clerical Cadre&lt;br /&gt;&lt;br /&gt;INSTITUTE OF BANKING PERSONNEL SELECTION invites Online Applications from INDIAN citizens for RECRUITMENT IN CLERICAL CADRE IN 19 PUBLIC SECTOR BANKS.&lt;br /&gt;&lt;br /&gt;Extension of dates (Registration of Clerical Cadre)&lt;br /&gt;1) Registration Online 28/09/2011 23:59 hours&lt;br /&gt;2) Online Payment and registration 28/09/2011 23:59 hours&lt;br /&gt;3) Offline (NEFT/CBS) Payment through Bank Branches 27/09/2011&lt;br /&gt;&lt;br /&gt;Helpdesk No: 1860 345 0112 (Option 5 : For IBPS - Common Written Exam)</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/8147288863839644170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/registration-date-extended-ibps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8147288863839644170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8147288863839644170'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/registration-date-extended-ibps.html' title='Registration date extended: ibps Clerical Cadre'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-1301080012359863115</id><published>2011-09-25T08:48:00.000-07:00</published><updated>2011-09-25T08:49:11.516-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Pointers And Strings</title><content type='html'>We cannot assign a string to another,whereas we can assign&lt;br /&gt;a char pointer to another char pointer. This is shown with an&lt;br /&gt;example:&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt; char str1[]=&quot;hello&quot;;&lt;br /&gt; char str2[10];&lt;br /&gt; char *s=&quot;good morning&quot;;&lt;br /&gt; char *q;&lt;br /&gt; str2=str1;/*error*/&lt;br /&gt; q=s;/*works*/&lt;br /&gt;}&lt;br /&gt;  Also,once a string has been defined it cannot be initialized&lt;br /&gt;to another set of characters.Unlike strings, such an operation&lt;br /&gt;is perfectly valid with char pointers.&lt;br /&gt;&lt;br /&gt;Example: &lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  char str1[]=&quot;hello&quot;;&lt;br /&gt;  char *=&quot;hello&quot;;&lt;br /&gt;  str1=&quot;bye&quot;;/*error*/&lt;br /&gt;  p=&quot;bye&quot;;/*works*/&lt;br /&gt;}&lt;br /&gt;THE const QUALIFIER:&lt;br /&gt;    The keyword const, if present, precedes the data type of a&lt;br /&gt;variable. It specifies that the value of the variable will not&lt;br /&gt;change throughout the program. Any attempt to vary the value &lt;br /&gt;of variable will result into an error message from compiler.&lt;br /&gt;const is usually used to replace # define d constants.&lt;br /&gt;&lt;br /&gt;Example: &lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;  float r,a;&lt;br /&gt;  const float,PI=3.14;&lt;br /&gt;  printf(&quot;\n Enter radius:&quot;);&lt;br /&gt;  scanf(&quot;%f&quot;,&amp;r);&lt;br /&gt;  a=PI*r*r;&lt;br /&gt;  printf(&quot;Area=%f&quot;,a);&lt;br /&gt; }          &lt;br /&gt;&lt;br /&gt;    If a const is placed inside a function its effect would &lt;br /&gt;be localised to that function,whereas if it is placed outside&lt;br /&gt;all functions then its effect would be global.&lt;br /&gt;&lt;br /&gt;RETURNING const VALUES:&lt;br /&gt;   A function can return a pointer to a constant string as &lt;br /&gt;shown Example:&lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;   const char *fun();&lt;br /&gt;   const char *p;&lt;br /&gt;   p=fun();&lt;br /&gt;   p=&#39;A&#39;;/error*/&lt;br /&gt;   printf(&quot;\n%s&quot;,p);&lt;br /&gt;}&lt;br /&gt;const char * fun()&lt;br /&gt;{&lt;br /&gt;  return &quot;Rain()&quot;;&lt;br /&gt;}&lt;br /&gt;  Since the function fun() is returning a constant string we &lt;br /&gt;cannot use the pointer p to modify it. The following &lt;br /&gt;operations too would be invalid:&lt;br /&gt;&lt;br /&gt;(a)main() cannot assign the return value to a pointer to a &lt;br /&gt;non-const string.&lt;br /&gt;(b)main() cannot pass the return value to a function that is &lt;br /&gt;expecting a pointer to a non-const string.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/1301080012359863115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/pointers-and-strings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/1301080012359863115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/1301080012359863115'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/pointers-and-strings.html' title='Pointers And Strings'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-6382992124002411702</id><published>2011-09-25T08:44:00.000-07:00</published><updated>2011-09-25T08:47:46.896-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Objective Type Questions on Pointers</title><content type='html'>1.What would be the output of the following program?&lt;br /&gt;   #include &quot;stdio.h&quot;&lt;br /&gt;    main( )&lt;br /&gt;    {&lt;br /&gt;      printf( &quot;%d %d&quot;, sizeof(NULL),sizeof(&quot; &quot; ) );&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;(a)   1   1&lt;br /&gt;(b)   1   2&lt;br /&gt;(c)   2   1&lt;br /&gt;(d)   2   2&lt;br /&gt;&lt;br /&gt;Ans:  c&lt;br /&gt;&lt;br /&gt;2.How many bytes are occupied by near,far and huge&lt;br /&gt; pointers?&lt;br /&gt;&lt;br /&gt;(a) 2,2,4&lt;br /&gt;(b) 2,4,4&lt;br /&gt;(c) 2,4,2&lt;br /&gt;(d) 2,2,2 &lt;br /&gt;&lt;br /&gt;Ans:  b&lt;br /&gt;&lt;br /&gt;4.Can anything else generate a Null Pointer Assignment&lt;br /&gt; error?&lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans:  a&lt;br /&gt;&lt;br /&gt;5. Are the three declarations char **apple, char &lt;br /&gt;*orange[ ], and char cherry [ ] [ ] same?&lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans:  b&lt;br /&gt;&lt;br /&gt;6.Can two different  near pointers contain two different&lt;br /&gt; addresses but refer to the same location in memory?&lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None &lt;br /&gt;&lt;br /&gt;Ans:  b&lt;br /&gt;&lt;br /&gt;7.  Can two different  far pointers contain two different&lt;br /&gt; addresses but refer to the same location in memory?&lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None &lt;br /&gt;&lt;br /&gt;Ans:  a&lt;br /&gt;&lt;br /&gt;8.  Can two different  huge pointers contain two different&lt;br /&gt; addresses but refer to the same location in memory?&lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None &lt;br /&gt;&lt;br /&gt;Ans:  b&lt;br /&gt;&lt;br /&gt;9.Would the following program give any warning on compilation?&lt;br /&gt;&lt;br /&gt;#include &quot;stdio.h&quot;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt;  int *p1,i=25;&lt;br /&gt;  void *p2;&lt;br /&gt;  p1=&amp;i;&lt;br /&gt;  p2=&amp;i;&lt;br /&gt;  p1=p2;&lt;br /&gt;  p2=p1;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans:  b&lt;br /&gt;&lt;br /&gt;10.Would the following program give any warning on compilation?&lt;br /&gt;&lt;br /&gt;#include &quot;stdioh&quot;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt;  float *p1,i=25.50;&lt;br /&gt;  char *p2;&lt;br /&gt;  p1=&amp;i;&lt;br /&gt;  p2=&amp;i;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;(a) Yes. Suspicious pointer conversion in function main&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans:  a&lt;br /&gt;&lt;br /&gt;11.What warning would be generated on compiling the following&lt;br /&gt; program?&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt;  char far *scr;&lt;br /&gt;  scr=0*B8000000;&lt;br /&gt;  *scr = &#39;A&#39;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;(a)  Suspicious pointer conversion in function main&lt;br /&gt;(b)  Non-portable pointer assignment in function main&lt;br /&gt;(c)  Can&#39;t say&lt;br /&gt;(d)  None&lt;br /&gt;&lt;br /&gt;Ans:  b&lt;br /&gt;&lt;br /&gt;12.How would you eliminate the warning generated on compiling&lt;br /&gt; the following program?&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt; char far *scr;&lt;br /&gt; scr=0*B8000000;&lt;br /&gt; *scr = &#39;A&#39;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;(a)  Use the typecast scr= (char *far ) 0*B8000000;&lt;br /&gt;(b)  Use the typecast scr= (char far * ) 0*B8000000;&lt;br /&gt;(c)  Use the typecast scr= (char **far ) 0*B8000000;&lt;br /&gt;(d)  Use the typecast scr= (char far ** ) 0*B8000000;&lt;br /&gt;&lt;br /&gt;Ans: b&lt;br /&gt;&lt;br /&gt;13.  In a large data model (compact, large, huge) all pointers&lt;br /&gt;to data are 32 bits long,whereas in a small data model (tiny,&lt;br /&gt;small,medium) all pointers are 16 bits long&lt;br /&gt;&lt;br /&gt;(a) True&lt;br /&gt;(b) False&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans:  a&lt;br /&gt;&lt;br /&gt;14.  A near pointer uses the contents of CS register &lt;br /&gt;(if the pointer is pointing to code) or contents of DS &lt;br /&gt;register (if the pointer is pointing to data) for the &lt;br /&gt;segment part,whereas the offset part is stored in the &lt;br /&gt;16-bit near pointer&lt;br /&gt;&lt;br /&gt;(a) True&lt;br /&gt;(b) False&lt;br /&gt;(c) Can&#39;t say&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans:  a&lt;br /&gt;&lt;br /&gt;15.  What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main( )&lt;br /&gt; {&lt;br /&gt;   char far *a=0*00000120;&lt;br /&gt;   char far *b=0*00100020;&lt;br /&gt;   char far *c=0*00120000;&lt;br /&gt;   if(a==b)&lt;br /&gt;    printf(&quot;\nHello&quot;);&lt;br /&gt;   if(a==c)&lt;br /&gt;    printf(&quot;\nHi&quot;);&lt;br /&gt;   if(b==c)&lt;br /&gt;    printf(&quot;\nHello Hi&quot;);&lt;br /&gt;   if(a&gt;b &amp;&amp; a&gt;c &amp;&amp;b&gt;c)&lt;br /&gt;    printf(&quot;\nBye&quot;);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;(a) Hello&lt;br /&gt;(b) Hi&lt;br /&gt;(c) Hello Hi&lt;br /&gt;(d) Bye&lt;br /&gt;&lt;br /&gt;Ans:  d&lt;br /&gt;&lt;br /&gt;16.  What would be the output of the following program?&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt; char huge *a=0*00000120;&lt;br /&gt; char huge *b=0*00100020;&lt;br /&gt; char huge *c=0*00120000;&lt;br /&gt; if(a==b)&lt;br /&gt;  printf(&quot;\nHello&quot;);&lt;br /&gt; if(a==c)&lt;br /&gt;  printf(&quot;\nHi&quot;);&lt;br /&gt; if(b==c)&lt;br /&gt;  printf(&quot;\nHello Hi&quot;);&lt;br /&gt; if(a&gt;b &amp;&amp; a&gt;c &amp;&amp;b&gt;c)&lt;br /&gt;  printf(&quot;\nBye&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;(a) Hello&lt;br /&gt;(b) Hi&lt;br /&gt;(c) Hello Hi&lt;br /&gt;(d) all&lt;br /&gt;&lt;br /&gt;ans:   d&lt;br /&gt;&lt;br /&gt;17.  Are the expressions *ptr++ and ++*ptr same?&lt;br /&gt;&lt;br /&gt;(a) Yes&lt;br /&gt;(b) No&lt;br /&gt;(c) Can&#39;t Say&lt;br /&gt;(d) None&lt;br /&gt;Ans: b&lt;br /&gt;&lt;br /&gt;18.Can you write another expression which does the same&lt;br /&gt;job as ++*ptr?&lt;br /&gt;&lt;br /&gt;(a) (ptr*)++&lt;br /&gt;(b) *ptr++&lt;br /&gt;(c) ptr*++&lt;br /&gt;(d) (*ptr)++&lt;br /&gt;&lt;br /&gt;Ans: d&lt;br /&gt;&lt;br /&gt;19.  What would be the equivalent pointer expression for&lt;br /&gt;referring the same element as a[i][j][k][l]?&lt;br /&gt;&lt;br /&gt;(a) *(*(*(*(a+i)+j)+k)+l)&lt;br /&gt;(b) *(*(*(*a[i])[j])[k])[l])&lt;br /&gt;(c) both&lt;br /&gt;(d) None&lt;br /&gt;&lt;br /&gt;Ans: a&lt;br /&gt;&lt;br /&gt;20. What would be the output of the following program ?&lt;br /&gt;   main( )&lt;br /&gt;  {&lt;br /&gt;    int arr[ ]={12,13,14,15,16};&lt;br /&gt;    printf(&quot;\n%d %d %d&quot;,sizeof(arr),sizeof(*arr),&lt;br /&gt;                sizeof(arr[0]));&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; (a) 10   4   4&lt;br /&gt; (b) 10   4   2&lt;br /&gt; (c) 10   2   2&lt;br /&gt; (d) 10   2   4&lt;br /&gt;&lt;br /&gt;Ans: c&lt;br /&gt;&lt;br /&gt;21.What would be the output of the following program &lt;br /&gt;assuming that the array begins at location 1002?&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt; int a[3][4]={1,2,3,4,&lt;br /&gt;              5,6,7,8,&lt;br /&gt;              9,10,11,12&lt;br /&gt;             };&lt;br /&gt; printf( &quot;\n%u %u %u&quot;,a[0]+1,*(a[0]+1),*(*(a+0)+1));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;(a) 1004   2   2&lt;br /&gt;(b) 1004  4   4&lt;br /&gt;(c) 1002  2   2&lt;br /&gt;(d) 1002  4   4&lt;br /&gt;&lt;br /&gt;Ans: a&lt;br /&gt;&lt;br /&gt;22.  What would be the output of the following program &lt;br /&gt;assuming that the array begins at location 1002?&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt; int a[2][3][4]={ {&lt;br /&gt;                   1,2,3,4,&lt;br /&gt;                   5,6,7,8,&lt;br /&gt;                   9,1,1,2&lt;br /&gt;                  },&lt;br /&gt;                  {&lt;br /&gt;                   2,1,4,7,&lt;br /&gt;                   6,7,8,9,&lt;br /&gt;                   0,0,0,0&lt;br /&gt;                  }&lt;br /&gt;                };&lt;br /&gt; printf(&quot;\n%u %u %u %d&quot;,a,*a,**a,***a);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;(a) 1002  1002 1002  2&lt;br /&gt;(b) 1002 1002  1002  1&lt;br /&gt;(c) 1004 1004  1004  1&lt;br /&gt;(d) 1004 1004  1004  2&lt;br /&gt;&lt;br /&gt;Ans: b&lt;br /&gt;&lt;br /&gt;23.  In the following program how would you print 50 &lt;br /&gt;using p?&lt;br /&gt;&lt;br /&gt; main( )&lt;br /&gt; {&lt;br /&gt;  int a[ ]={10,20,30,40,50};&lt;br /&gt;  char *p;&lt;br /&gt;  p = (char *) a;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;(a) printf(&quot;\n%d&quot;,*( (int *)p+4) );&lt;br /&gt;(b) printf(&quot;\n%d&quot;,( (int *)p+4) );&lt;br /&gt;(c) printf(&quot;\n%d&quot;,*( (int )p+4) );&lt;br /&gt;(d) printf(&quot;\n%d&quot;,*( (int **)p+4) );&lt;br /&gt;&lt;br /&gt;Ans:  a&lt;br /&gt;&lt;br /&gt;24.In the following program add a statement in the &lt;br /&gt;function fun( ) such that address&lt;br /&gt; of a gets stored &lt;br /&gt;in j&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt; int *j;&lt;br /&gt; void fun(int **);&lt;br /&gt; fun(&amp;j);&lt;br /&gt;}&lt;br /&gt;void fun(int **k)&lt;br /&gt;{&lt;br /&gt; int a=10;&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;(a) *k=&amp;a;&lt;br /&gt;(b)  &amp;a=*k;&lt;br /&gt;(c) &amp;k=*a;&lt;br /&gt;(d) *a=&amp;k;&lt;br /&gt;&lt;br /&gt;Ans: a&lt;br /&gt;&lt;br /&gt;25.How would you declare an array of three function &lt;br /&gt;pointers where each function receives two ints and &lt;br /&gt;returns a float?&lt;br /&gt;&lt;br /&gt;(a) float (arr[3])(int,int);&lt;br /&gt;(b) int (arr[3])(float,float);&lt;br /&gt;(c) int (*arr[3])(float,float);&lt;br /&gt;(d) float(*arr[3])(int,int);&lt;br /&gt;&lt;br /&gt;Ans: d</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/6382992124002411702/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/objective-type-questions-on-pointers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6382992124002411702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6382992124002411702'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/objective-type-questions-on-pointers.html' title='Objective Type Questions on Pointers'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-2143812421870874708</id><published>2011-09-25T00:39:00.000-07:00</published><updated>2011-09-25T00:43:14.302-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Basic Pointers</title><content type='html'>Pointer Definition: Pointer is a variable which contains&lt;br /&gt;the address of another variable.Reasons for using pointer:&lt;br /&gt;1.A pointer enables us to access a variable that is &lt;br /&gt;defined outside the function.&lt;br /&gt;2.Pointers are more efficient in handling the data tables.&lt;br /&gt;3.Pointers reduce the length and complexity of a program.&lt;br /&gt;4.They increase the execution speed&lt;br /&gt;5.The use of pointer array to character strings results &lt;br /&gt;in saving of data storage space in memory.&lt;br /&gt;&lt;br /&gt;Representation of a variable:&lt;br /&gt;         Consider the following statement &lt;br /&gt;        int *p;&lt;br /&gt;        int quantity=179;&lt;br /&gt;        p=&amp;quantity;&lt;br /&gt;     Here p is a pointer variable of type integer,which &lt;br /&gt;holds the address of the variable quantity.&lt;br /&gt;&lt;br /&gt;Declaring and initializing pointers:&lt;br /&gt;   In c,every variable must be declared for its type since&lt;br /&gt;pointer variable contain address that belong to a seperate&lt;br /&gt;data type, they must be declared as pointers before we use&lt;br /&gt;them.The declaration of a pointer variable takes the &lt;br /&gt;following form.&lt;br /&gt;         data type *pt-name;&lt;br /&gt;   This tells the compiler three things about the variable&lt;br /&gt;pt-name&lt;br /&gt;1.The asterick(*) tells that the variable pt-name is a &lt;br /&gt;  pointer variable.&lt;br /&gt;2.pt-name needs a memory location.&lt;br /&gt;3.pt-name points to a variable of type data type.&lt;br /&gt;&lt;br /&gt;for example,&lt;br /&gt;   int *p;&lt;br /&gt;   declares the variable p as apointer variable that &lt;br /&gt;points to an integer data type.Remember that the type int&lt;br /&gt;refers to the data type of the variable being pointed to &lt;br /&gt;by p and not the type of the value of the pointer.&lt;br /&gt;&lt;br /&gt;   Program to print the address of a variable along with&lt;br /&gt;its value.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;   char a;&lt;br /&gt;   int x;&lt;br /&gt;   float p,q;&lt;br /&gt;   a=&#39;A&#39;;&lt;br /&gt;   x=125;&lt;br /&gt;   p=10.25,q=18.76;&lt;br /&gt;   printf(&quot;%c is stored at addr %u \n&quot;,a,&amp;a);&lt;br /&gt;   printf(&quot;%d is stored at addr %u \n&quot;,x,&amp;x);&lt;br /&gt;   printf(&quot;%f is stored at addr %u \n&quot;,p,&amp;p);&lt;br /&gt;   printf(&quot;%f is stored at addr %u \n&quot;,q,&amp;q);&lt;br /&gt;}&lt;br /&gt;Output:&lt;br /&gt;A is stored at addr 4436&lt;br /&gt;125 is stored at addr 4434&lt;br /&gt;10.250000 is stored at addr 4442&lt;br /&gt;18.760000 is stored at addr 4438.&lt;br /&gt;&lt;br /&gt;Accessing variables using pointers&lt;br /&gt;&lt;br /&gt;main( )&lt;br /&gt;{&lt;br /&gt;   int x,y;&lt;br /&gt;   int *ptr;&lt;br /&gt;   x=10;&lt;br /&gt;   ptr=&amp;x;&lt;br /&gt;   y=*ptr;&lt;br /&gt;   printf(&quot;value of x is %d\n\n&quot;,x);&lt;br /&gt;   printf(&quot;%d is stored at addr %u\n&quot;,x,&amp;x);&lt;br /&gt;   printf(&quot;%d is stored at addr %u\n&quot;,*&amp;x,&amp;x);&lt;br /&gt;   printf(&quot;%d is stored at addr %u\n&quot;,*ptr,ptr);&lt;br /&gt;   printf(&quot;%d is stored at addr %u\n&quot;,y,&amp;*ptr);&lt;br /&gt;   printf(&quot;%d is stored at addr %u\n&quot;,ptr,&amp;ptr);&lt;br /&gt;   printf(&quot;%d is stored at addr %u\n&quot;,y,&amp;y);&lt;br /&gt;   *ptr=25;&lt;br /&gt;   printf(&quot;\n Now x=%d\n&quot;,x);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Ouput:&lt;br /&gt;value of x is 10&lt;br /&gt;10 is stored at addr 4104&lt;br /&gt;10 is stored at addr 4104&lt;br /&gt;10 is stored at addr 4104&lt;br /&gt;10 is stored at addr 4104&lt;br /&gt;4104 is stored at addr 4106&lt;br /&gt;10 is stored at addr 408.     Now x=25.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/2143812421870874708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/basic-pointers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2143812421870874708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2143812421870874708'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/basic-pointers.html' title='Basic Pointers'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-8545459122861858225</id><published>2011-09-23T00:30:00.002-07:00</published><updated>2011-09-23T00:31:23.603-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Objective Type Questions on string functions</title><content type='html'>1.What would be the output of the following program?&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  printf(5+&quot;fascimile&quot;);&lt;br /&gt;}&lt;br /&gt;A. error   B. fascimile   C. mile  D. none of the above&lt;br /&gt;&lt;br /&gt;Ans: C&lt;br /&gt;&lt;br /&gt;2.What would be the output of the following program?&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt; char str1[] = &quot;Hello&quot;;&lt;br /&gt; char str2[] = &quot;Hello&quot;;&lt;br /&gt; if(str1 == str2)&lt;br /&gt; printf(&quot;\n Equal&quot;);&lt;br /&gt; else&lt;br /&gt; printf(&quot;\nUnequal&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;A. Equal   B. Unequal  C. Error  D. None of the above&lt;br /&gt;&lt;br /&gt;Ans: B&lt;br /&gt;&lt;br /&gt;3.What would be the output of the following program?&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt; printf(&quot;%c&quot;,&quot;abcdefgh&quot;[4]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;A. Error    B. d   C. e   D. abcdefgh&lt;br /&gt;&lt;br /&gt;Ans: C&lt;br /&gt;&lt;br /&gt;4.How would you output \n on the following screen?&lt;br /&gt;&lt;br /&gt;Ans: printf(&quot;\\n&quot;);&lt;br /&gt;&lt;br /&gt;5.What would be the output of the following program?&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{ &lt;br /&gt;  char str[7] = &quot;strings&quot;;&lt;br /&gt;  printf(&quot;%s&quot;, str);&lt;br /&gt;}&lt;br /&gt;A. error  B. strings  C. cannot predict  D. none of the above&lt;br /&gt;&lt;br /&gt;Ans:  C     &lt;br /&gt;  Here str[] has been declared as a 7 character array and &lt;br /&gt;into it a 8 character string has been stored . This would &lt;br /&gt;result into overwriting of the byte beyond the seventh &lt;br /&gt;byte reserved for the array with a &#39;\0&#39;.There is always a&lt;br /&gt;possibility that something important gets overwritten &lt;br /&gt;which would be unsafe .&lt;br /&gt;&lt;br /&gt;6.What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;   char ch = &#39;A&#39;;&lt;br /&gt;   printf(&quot;%d%d&quot;, sizeof(ch), sizeof(&#39;A&#39;));&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;A. 1 1  B.  1 2   C. 2 2    D. 2 1&lt;br /&gt;&lt;br /&gt;Ans:  B&lt;br /&gt;&lt;br /&gt;7. What would be the output of the following program?&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;   printf(&quot;\n%d%d%d&quot;, sizeof(&#39;3&#39;), sizeof(&quot;3&quot;), sizeof(3));&lt;br /&gt;}&lt;br /&gt;A 1 1 1  B. 2 2 2   C. 1 2 2   D. 1 1 1&lt;br /&gt;&lt;br /&gt;Ans:B&lt;br /&gt;&lt;br /&gt;8. What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;   char *str[] = {&quot;Frogs&quot;, &quot;Do&quot;, &quot;Not&quot;, &quot;Die&quot;,&lt;br /&gt;                  &quot;They&quot;, &quot;Croak&quot;};&lt;br /&gt;   printf(&quot;%d %d&quot;, sizeof(str), sizeof(str[0]));&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Ans: 12  2&lt;br /&gt;&lt;br /&gt;9. What would be the output of the following program?&lt;br /&gt;&lt;br /&gt;  main()&lt;br /&gt;  {&lt;br /&gt;    static char s[] = &quot;Rendezvous&quot;;&lt;br /&gt;    printf(&quot;%d&quot;, *(s+strlen(s)));&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;Ans:   0&lt;br /&gt;&lt;br /&gt;Explanation: No Rendezvous, but a zero is printed out. &lt;br /&gt;Mentioning the name of the string gives the base address&lt;br /&gt;of the string. The function strlen(s) returns the length&lt;br /&gt;of the string s[], which in this case is 12. In the &lt;br /&gt;printf(), using the &#39;contents of&#39; operator , we are &lt;br /&gt;trying to print out the contents of 12th address from the&lt;br /&gt;base address of the string. At this address there is a &lt;br /&gt;&#39;\0&#39; ,which is automatically stored to mark the end of the&lt;br /&gt;string. The ASCII value of &#39;\0&#39; is 0, which is what being&lt;br /&gt;printed by the printf().&lt;br /&gt;&lt;br /&gt;10. What would be the output of the following program?&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;   char ch[20];&lt;br /&gt;   int i;&lt;br /&gt;   for(i=0; i&lt;=19; i++)&lt;br /&gt;   *(ch+i) = 67;&lt;br /&gt;   *(ch+i) = &#39;\0&#39;;&lt;br /&gt;   printf(&quot;%s&quot; , ch);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Ans: CCCCCCCCCCCCCCCCCCC&lt;br /&gt;&lt;br /&gt;Explanation:Mentioning the name of the array always gives &lt;br /&gt;its base address . Therefore (ch+i) would give the address&lt;br /&gt;of the ith element from the base address , and  *(ch+i) &lt;br /&gt;would give the value at the address , i.e the value of the&lt;br /&gt;ith element . Through the for loop we store 67, which is the&lt;br /&gt;ASCII value of upper case &#39;C&#39; , in all locations of the &lt;br /&gt;string.Once the control reaches outside the for loop the &lt;br /&gt;value of i would be 19 , and in the 19th location from the &lt;br /&gt;base address we store a &#39;\0&#39; to mark the end of the string. &lt;br /&gt;This is essential , as the compiler has no other way of &lt;br /&gt;knowing where the string is terminated .In the printf() that &lt;br /&gt;follows , %s is the format specification for printing a string,&lt;br /&gt;and ch gives the base address of the string .Hence starting &lt;br /&gt;from the first element ,the complete string is printed out.&lt;br /&gt;&lt;br /&gt;11. What would be the output of the following program?&lt;br /&gt;  main()&lt;br /&gt;   {&lt;br /&gt;     char str[20];&lt;br /&gt;      int i;&lt;br /&gt;      for(1=0;1&lt;=18; i++)&lt;br /&gt;       i[str] = &#39;C&#39;;&lt;br /&gt;      i[str] = &#39;\0&#39;;&lt;br /&gt;      printf(&quot;%s&quot;,str);&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;Ans:CCCCCCCCCCCCCCCCCCC&lt;br /&gt;&lt;br /&gt;Explanation:  If your concept of arrays is fool-proof , you &lt;br /&gt;should find the above o/p only natural. If not, here&#39;s your&lt;br /&gt;chance to make it so. C makes no secret of the fact that it&lt;br /&gt;uses pointers internally to access array elements .With the &lt;br /&gt;knowledge of how array elements are accessed using pointers,&lt;br /&gt;we can think of str[i] as *(str+i). Basic maths tells us &lt;br /&gt;that *(str+i) would be same as *(i+str). And if str[i] is &lt;br /&gt;same as *(str+i), then naturally *(i+str) would be same as &lt;br /&gt;i[str].Thus, we can conclude that all the following &lt;br /&gt;expressions are different ways of referring the ith element &lt;br /&gt;of the string:&lt;br /&gt;  str[i]&lt;br /&gt;  *(str+i)&lt;br /&gt;  *(i+str)&lt;br /&gt;  i[str]&lt;br /&gt;   Hence, through the for loop upper case C is stored in all &lt;br /&gt;the elements of the string. A &#39;\0&#39; is stored to mark the end&lt;br /&gt;of the string, and then the string is printed out using &lt;br /&gt;printf().&lt;br /&gt;&lt;br /&gt;12.What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;    char str[20];&lt;br /&gt;    static int i;&lt;br /&gt;    for(; ;)&lt;br /&gt;     {&lt;br /&gt;       i++[str] = &#39;A&#39; + 2;&lt;br /&gt;       if(i == 19)&lt;br /&gt;       break;&lt;br /&gt;     }&lt;br /&gt;    i[str] = &#39;\0&#39;;&lt;br /&gt;    printf(&quot;%s&quot;,str);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Ans:CCCCCCCCCCCCCCCCCCC&lt;br /&gt;&lt;br /&gt;13. What would be the output of the following program?&lt;br /&gt;&lt;br /&gt;  main()&lt;br /&gt;   {&lt;br /&gt;     static char str[]={48,48,48,48,48,48,48,48,48,48};&lt;br /&gt;     char *s;&lt;br /&gt;     int i;&lt;br /&gt;     s = str;&lt;br /&gt;    for( i = 0; i&lt;=9; i++)&lt;br /&gt;     {&lt;br /&gt;         if(*s)&lt;br /&gt;          printf(&quot;%c&quot;, *s);&lt;br /&gt;           s++;&lt;br /&gt;     }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;Ans: 0000000000&lt;br /&gt;&lt;br /&gt;Explanation: In all 10 elements of str[], an integer , 48 &lt;br /&gt;is stored. Wondering whether a char string can hold ints? &lt;br /&gt;The answer is yes, as 48 does not get stored literally in &lt;br /&gt;the elements. 48 is interpreted as the ASCII value of the &lt;br /&gt;character to be stored in the string. the character corr-&lt;br /&gt;esponding to ASCII value 48 happens to be 0, which assig-&lt;br /&gt;ned to all the locations of the string.&#39;s&#39;, a character &lt;br /&gt;pointer, is assigned the base address of the string str[].&lt;br /&gt;Next , in the if condition,the value at address contained&lt;br /&gt;in s is checked for truth/falsity.As 0 represents ASCII 48,&lt;br /&gt;the condition evaluates to true every time, until the end &lt;br /&gt;of the string is reached. At the end of the string a &#39;\0&#39;,&lt;br /&gt;i.e ASCII 0 is encountered , and the if condition fails.&lt;br /&gt;Irrespective of whether the condition is satisfied or not,&lt;br /&gt;&#39;s&#39; is incremented so that each time it points to the &lt;br /&gt;subsequent array element .This entire logic is repeated &lt;br /&gt;in the for loop , printing out 10 zeros in the process.&lt;br /&gt;&lt;br /&gt;14. What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt;  {&lt;br /&gt;    static char str[]={0,0,0,0,0,0,0,0,0,0};&lt;br /&gt;     char *s;&lt;br /&gt;     int i;&lt;br /&gt;     s = str;&lt;br /&gt;    for( i = 0; i&lt;=9; i++)&lt;br /&gt;     {&lt;br /&gt;        if(*s)&lt;br /&gt;            printf(&quot;%c&quot;, *s);&lt;br /&gt;           s++;&lt;br /&gt;     }&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;Ans: No output&lt;br /&gt;&lt;br /&gt;Explanation: Though you may not have expected zeros to be &lt;br /&gt;outputted this time,you surely did expect some output! We &lt;br /&gt;stored the character corresponding to ASCII 0 in all 10 &lt;br /&gt;elements of the string. Next, we assigns s, a char pointer,&lt;br /&gt;the base address of the string . Though the for loop , we are&lt;br /&gt;attempting to print out all elements one by one , but not &lt;br /&gt;before imposing the if condition.The if is made to test the &lt;br /&gt;value at address contained in &#39;s&#39; before the execution of the&lt;br /&gt;printf( ) .The first time , *s yields ASCII 0. Therefore the &lt;br /&gt;if condition reduces to if(0) , and as 0 stands for falsity, &lt;br /&gt;the condition fails. Hence ,&#39;s&#39;is incremented and control &lt;br /&gt;loops back to for without executing the printf(). The same &lt;br /&gt;thing happens the next time around , and the next, and so on,&lt;br /&gt;till the for loop ends, resulting in no output at all.&lt;br /&gt;&lt;br /&gt;15. What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main() &lt;br /&gt; {&lt;br /&gt;  static char s[]=&quot;C Smart!!&quot;;&lt;br /&gt;  int i;&lt;br /&gt;  for(i =0; s[i]; i++)&lt;br /&gt;     printf(&quot;%c%c%c%c\n&quot;,s[i],*(s+i),i[s],*(i+s));&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Ans:       C C C C&lt;br /&gt;           S S S S &lt;br /&gt;           m m m m&lt;br /&gt;           a a a a&lt;br /&gt;           r r r r&lt;br /&gt;           t t t t&lt;br /&gt;                  &lt;br /&gt;           ! ! ! !&lt;br /&gt;Explanation:The above program rubs in the point that s[i], &lt;br /&gt;i[s],*(s+i) and *(i+s) are various ways of referring to the&lt;br /&gt;same element, that is the ith element of the string s. Each&lt;br /&gt;element of the string is printed out for four times,till the&lt;br /&gt;end of the string is encountered. Note that in the for loop&lt;br /&gt;there is an expression s[i] in the condition part. This means&lt;br /&gt;the loop would continue to get executed till s[i] is not equal&lt;br /&gt;to zero. We can afford to say this because a string always ends&lt;br /&gt;with a &#39;\0&#39;, whose ASCII value is 0. Thus the for loop will be&lt;br /&gt;terminated when the expression s[i] yields a &#39;\0&#39;.&lt;br /&gt;&lt;br /&gt;16. What would be the output of the following program?&lt;br /&gt; main()&lt;br /&gt;  {&lt;br /&gt;    static char s[] = &quot;Oinks Grunts and Guffaws&quot;;&lt;br /&gt;    printf(&quot;%c\n&quot;, *(&amp;s[2]));&lt;br /&gt;    printf(&quot;%s\n&quot;,  s+5);&lt;br /&gt;    printf(&quot;%s\n&quot;, s);&lt;br /&gt;    printf(&quot;%c\n&quot;, *(s+2));&lt;br /&gt;    printf(%s\n&quot;, s);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;Ans: n&lt;br /&gt;        Grunts and Guffaws&lt;br /&gt;        Oinks Grunts and Guffaws&lt;br /&gt;        n&lt;br /&gt;        404&lt;br /&gt;Explanation:  In the first printf() the address of operator, &amp;&lt;br /&gt;gives the address of the second element of the string . Value &lt;br /&gt;at this address is &#39;n&#39; , which is printed out by the printf()&lt;br /&gt;using %c.  since s gives the base address of the array , (s+5)&lt;br /&gt;would give the address of the fifth element from the base &lt;br /&gt;address . This address is passed to the second printf() . &lt;br /&gt;Using the format specification %s , the contents of the string&lt;br /&gt;are printed out the 5th element onwards.The third printf() &lt;br /&gt;prints the entire string , as the base address of the string&lt;br /&gt;is being passed to it. The fourth printf() is made to print &lt;br /&gt;the second character of the string , as *(s+2) is nothing but&lt;br /&gt;s[2]. Thus &#39;n&#39;gets printed.Does the o/p of the final printf()&lt;br /&gt;surprise you by printing out a number , 404? &lt;br /&gt;&lt;br /&gt;Note that the format specification %d is used with s, which &lt;br /&gt;gives the base address of the string. It happened to be 404&lt;br /&gt;when we executed the program, which got printed out. On &lt;br /&gt;executing the same yourself, you may get any other address, &lt;br /&gt;depending on what address is allotted to the string by the &lt;br /&gt;compiler.&lt;br /&gt;&lt;br /&gt;17.What would be the output of the following program?&lt;br /&gt; main()&lt;br /&gt; {&lt;br /&gt;    static char s[25] = &quot;The cocaine man&quot;;&lt;br /&gt;    int i =0;&lt;br /&gt;    char ch;&lt;br /&gt;    ch = s[++i];&lt;br /&gt;    printf(&quot;%c%d\n&quot;,ch,i);&lt;br /&gt;    ch = s[i++];&lt;br /&gt;    printf(&quot;%c%d\n&quot;,ch,i);&lt;br /&gt;    ch = i++[s];&lt;br /&gt;    printf(&quot;%c%d\n&quot;,ch,i);&lt;br /&gt;    ch = ++i[s];&lt;br /&gt;    printf(&quot;%c%d\n&quot;,ch,i);&lt;br /&gt; }&lt;br /&gt;Ans:  h 1&lt;br /&gt;      h 2&lt;br /&gt;      e 3&lt;br /&gt;      !  3&lt;br /&gt;&lt;br /&gt;18.What would be the output of the following program?&lt;br /&gt;&lt;br /&gt; main()&lt;br /&gt;  {&lt;br /&gt;    static char arr[] = &quot;pickpocketing my piece of mind&quot;;&lt;br /&gt;    int i:&lt;br /&gt;    printf(&quot;%c\n&quot;, *arr);&lt;br /&gt;    arr++;&lt;br /&gt;    printf(&quot;%c\n&quot;, *arr);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;Ans: Lvalue required in function main</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/8545459122861858225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/objective-type-questions-on-string.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8545459122861858225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/8545459122861858225'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/objective-type-questions-on-string.html' title='Objective Type Questions on string functions'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-4801318657392142876</id><published>2011-09-23T00:30:00.001-07:00</published><updated>2011-09-23T00:30:22.409-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Limitations of array Pointers to strings</title><content type='html'>When we are using a two-dimensional array of characters&lt;br /&gt;we are at liberty to either initialize the strings where we&lt;br /&gt;are declaring the array, or receive the stringsusing &lt;br /&gt;scanf() function. However,when we are using an array of &lt;br /&gt;pointers to stringswe can initialize the strings at the &lt;br /&gt;place where we are declaring the array,but we cannot receive&lt;br /&gt;the strings from keyboard using scanf().Thus the following&lt;br /&gt;program would never work out.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char *names[6];&lt;br /&gt;int i;&lt;br /&gt;for(i =0; i&lt;= 5; i++)&lt;br /&gt;{&lt;br /&gt;printf(&quot;\n enter name&quot;);&lt;br /&gt;scanf(&quot;%s&quot;,names[i]);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;  The program doesn&#39;t work because; when ae are declaring&lt;br /&gt;the array it is containing the garbage values. And it &lt;br /&gt;would be definitely wrong to send these garbage values to&lt;br /&gt;scanf() as the address where it should keep the strings &lt;br /&gt;received from the keyboard.&lt;br /&gt;  Write a function xstrstr() that will return the position&lt;br /&gt;where one string is present within another string. If the&lt;br /&gt;second string doesn&#39;t occur in the first string xstrstr()&lt;br /&gt;should return a 0.&lt;br /&gt;&lt;br /&gt;For example, in the string &quot;somewhere over the rainbow&quot;, &lt;br /&gt;&quot;over&quot; is present at location 11.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;static char str1[] = &quot;somewhere over the rainbow&quot;;&lt;br /&gt;static char str2[] = &quot;over&quot;;&lt;br /&gt;printf(&quot;string found at %d&quot;, xstrstr(str1, str2));&lt;br /&gt;}&lt;br /&gt;xstrstr(s1, s2)&lt;br /&gt;char *s1, *s2;&lt;br /&gt;{&lt;br /&gt;int i, a, len1, len2;&lt;br /&gt;len1 = strlen(s1);&lt;br /&gt;len2 = strlen(s2);&lt;br /&gt;for(i = 0; i&lt;=(len-1); i++)&lt;br /&gt;{&lt;br /&gt;a = strncmp((s1+i) , s2, len2);&lt;br /&gt;if(a == 0)&lt;br /&gt;return (i+1);&lt;br /&gt;}&lt;br /&gt;return (0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;string found at 11&lt;br /&gt;&lt;br /&gt;Explanation:  The two strings have been declared as str1[]&lt;br /&gt;and str2[] in main from where the base addresses are sent&lt;br /&gt;to the function xstrstr() for searching the second string &lt;br /&gt;in the first one. In xstrstr(), len1 and len2 store the &lt;br /&gt;lengths of the 2 strings withbase addresses s1 and s2 &lt;br /&gt;respectively .In the for loop, i is incremented len1 number&lt;br /&gt;of times. As many times, the standard library function &lt;br /&gt;strncmp(t,s, n) gets called.This function compares the &lt;br /&gt;first n elements of strings starting from t and s and &lt;br /&gt;returns 0 if they are equal.The first time through the for&lt;br /&gt;loop, i is 0. Hence strncmp() compares the first len2 &lt;br /&gt;(here len2 is equal to 4) elements of strings starting &lt;br /&gt;from (s1+0) i.e s1and s2 a collects a non-zero value, as &lt;br /&gt;the first four elements of the two strings are found to be &lt;br /&gt;different.The control therefore reverts back to the for &lt;br /&gt;where i is incremented to 1.So the second time through the &lt;br /&gt;loop strncmp() compares first len2 elements &lt;br /&gt;of strings &lt;br /&gt;starting from s1 and s2. Literally first 4 elements of &lt;br /&gt;&quot;somewhere over the rainbow&quot; and &quot;over&quot; are compared .Once &lt;br /&gt;again a collects a non-zero value and i is incremented a &lt;br /&gt;second time.this goes on similarly till i is 10, when s1+10&lt;br /&gt;denotes the base address of the string &quot;over the rainbow&quot;.&lt;br /&gt;This time a is assigned a 0,as both the strings have o, v, e&lt;br /&gt;and r as the first four elements, and control returns to &lt;br /&gt;main() with i+1, i.e 11.This is the position of the second &lt;br /&gt;string in the first one.Suppose the second string is not&lt;br /&gt;present in the first string at all, then at no time a would &lt;br /&gt;contain 0. Thus the return statement after the loop would &lt;br /&gt;return 0,signifying that the second string was not found in &lt;br /&gt;the first one.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/4801318657392142876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/limitations-of-array-pointers-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/4801318657392142876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/4801318657392142876'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/limitations-of-array-pointers-to.html' title='Limitations of array Pointers to strings'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-2790793447534287179</id><published>2011-09-23T00:29:00.001-07:00</published><updated>2011-09-23T00:29:53.031-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Array Of Pointers To Strings</title><content type='html'>As we know , a pointer variable always contains an &lt;br /&gt;address. Therefore , if we construct an array of pointers&lt;br /&gt;it would contain a number of addresses.Let us see how the&lt;br /&gt;names in the earlier example can be stored in the array of&lt;br /&gt;pointers. &lt;br /&gt;&lt;br /&gt;char *names[] = { &quot;akshay&quot;, &quot;parag&quot;, &quot;raman&quot;,&lt;br /&gt;                  &quot;srinivas&quot;, &quot;gopal&quot;, &quot;rajesh&quot;};&lt;br /&gt;    In this declaration names[] is an array of pointers.It&lt;br /&gt;contains base addresses of respective names.That is. base&lt;br /&gt;address of &quot;akshay&quot; is stored in names[0], base address of&lt;br /&gt;&quot;parag&quot; is stored in names[1] and so on. In the &lt;br /&gt;two-dimensional array of characters,the strings occupied &lt;br /&gt;60 bytes.As against this ,in array of pointers,the strings&lt;br /&gt;occupy only 41 bytes.&lt;br /&gt;   Note that in two-dimensional array of characters ,the&lt;br /&gt;last name ended at location number 1060,whereas in array&lt;br /&gt;of pointers to strings , it ends at 1041.A substantial &lt;br /&gt;saving, you would agree. But realise that actually 19 &lt;br /&gt;bytes are not saved, since 10 bytes are sacrificed for &lt;br /&gt;storing the address in array names .Thus ,one reason to &lt;br /&gt;store strings in an array of pointers is to make a more &lt;br /&gt;efficient use of available memory.&lt;br /&gt;    Another reason to use an array of pointers to store &lt;br /&gt;strings is to obtain greater ease in manipulation of the&lt;br /&gt;strings. This is shown by the following programs.&lt;br /&gt;   The first one uses a two-dimensional array of characters&lt;br /&gt;to store the names, whereas the second uses an array of &lt;br /&gt;pointers to strings .&lt;br /&gt;   The purpose of both the programs is very simple. &lt;br /&gt;We want to exchange the position of the names &quot;raman&quot; &lt;br /&gt;and &quot;srinivas&quot;.&lt;br /&gt;&lt;br /&gt;Exchange names using 2-D array of characters&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char names[][10] = { &quot;akshay&quot;, &quot;parag&quot;, &quot;raman&quot;,&lt;br /&gt;                     &quot;srinivas&quot;, &quot;gopal&quot;, &quot;rajesh&quot;};&lt;br /&gt;int i;&lt;br /&gt;char t;&lt;br /&gt;printf(&quot;\n original: %s%s&quot;,&amp;names[2][0], &amp;names[3][0]);&lt;br /&gt;for(i = 0; i&lt;= 9; i++)&lt;br /&gt;{&lt;br /&gt;t = names[2][i];&lt;br /&gt;names[2][i] = names[3][i];&lt;br /&gt;names[3][i] = t;&lt;br /&gt;}&lt;br /&gt;printf(&quot;\n New:%s%S&quot;, &amp;names[2][0], &amp;names[3][0]);&lt;br /&gt;}&lt;br /&gt;output:&lt;br /&gt;Original: raman srinivas&lt;br /&gt;New: srinivas raman&lt;br /&gt;&lt;br /&gt;  Note that in this program to exchange the names we are &lt;br /&gt;required to exchange corresponding characters of the two &lt;br /&gt;names. In effect , 10 exchanges are needed to interchange&lt;br /&gt;two names Let us see if the number of exchanges can be &lt;br /&gt;reduced by using an array of pointers to strings. Here is&lt;br /&gt;the program...&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char *names[] = { &quot;akshay&quot;, &quot;parag&quot;, &quot;raman&quot;,&lt;br /&gt;                  &quot;srinivas&quot;, &quot;gopal&quot;, &quot;rajesh&quot;};&lt;br /&gt;char *temp;&lt;br /&gt;printf(&quot;original: %s %s&quot;, names[2], names[3]);&lt;br /&gt;temp = names[2];&lt;br /&gt;names[2] = names[3];&lt;br /&gt;names[3] = temp;&lt;br /&gt;printf(&quot;\n New: %s %s&quot;, names[2], names[3]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;original: raman srinivas&lt;br /&gt;New: srinivas raman</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/2790793447534287179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/array-of-pointers-to-strings.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2790793447534287179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/2790793447534287179'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/array-of-pointers-to-strings.html' title='Array Of Pointers To Strings'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-6368539189591819572</id><published>2011-09-23T00:28:00.002-07:00</published><updated>2011-09-23T00:29:19.470-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>Programs In String Handling Functions</title><content type='html'>1.Is the folowing program correct or not?   yes/no&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  char *str1 = &quot;United&quot;;&lt;br /&gt;  char * str2 = &quot;Front&quot;;&lt;br /&gt;  char  *str3;&lt;br /&gt;  str3 = strcat(str1, str2);&lt;br /&gt;  printf(&quot;\n %s&quot;, str3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Ans: No, since what is present in memory beyond &quot;united&quot; is &lt;br /&gt;not known and we are attaching &quot;Front&quot; at the end of &quot;United&quot;,&lt;br /&gt;thereby overwriting something, which is unsafe thing to do.&lt;br /&gt;&lt;br /&gt;2.How would you improve the code in the above program?&lt;br /&gt;&lt;br /&gt; Ans: main()&lt;br /&gt;      {&lt;br /&gt;       char str1[15] = &quot;United&quot;;&lt;br /&gt;       char *str2 = &quot;Front&quot;;&lt;br /&gt;       char *str3;&lt;br /&gt;       str3 = strcat(str1,str2);&lt;br /&gt;       printf(&quot;\n%s&quot;, str3);&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;3. Write  a program to enter the two strings and compare them &lt;br /&gt;without using any standard function. Determine whether the &lt;br /&gt;strings are identical or not.&lt;br /&gt;  Also display the number of position where the characters are &lt;br /&gt;different.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;static char sr[10], tr[10];&lt;br /&gt;int diff = 0,i;&lt;br /&gt;clrscr();&lt;br /&gt;printf(&quot;\n enter the string&quot;);&lt;br /&gt;gets(sr);&lt;br /&gt;printf(&quot;enter the second string&quot;);&lt;br /&gt;gets(tr);&lt;br /&gt;for(i =0; i&lt;10;i++)&lt;br /&gt;{&lt;br /&gt;if(sr[i] ==tr[i]);&lt;br /&gt;continue;&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;printf(&quot;%c %c\n&quot;, sr[i],tr[i]);&lt;br /&gt;diff++;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;if(strlen(sr) == strlen(tr)&amp;&amp;diff == 0)&lt;br /&gt;puts(&quot;\n The two strings are identical&quot;);&lt;br /&gt;else&lt;br /&gt;printf(&quot;\n The two strings are different&lt;br /&gt;        at %d places&quot;, diff);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;   enter the string: BEST LUCK&lt;br /&gt;   enter the second string: GOOD LUCK&lt;br /&gt;   G B&lt;br /&gt;   O E&lt;br /&gt;   O S&lt;br /&gt;   D T&lt;br /&gt;&lt;br /&gt;4.Write a program to concatenate two strings without the use&lt;br /&gt; of standard library functions&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char name[50], fname[15], sname[15], lname[15];&lt;br /&gt;int i,j,k;&lt;br /&gt;printf(&quot;first name&quot;);&lt;br /&gt;grts(fname);&lt;br /&gt;printf(&quot;second name&quot;);&lt;br /&gt;grts(sname);&lt;br /&gt;printf(&quot;last name&quot;);&lt;br /&gt;grts(lname);&lt;br /&gt;for(i =0; fname[i]!=&#39;\0&#39;; i++)&lt;br /&gt;name[i]=fname[i];&lt;br /&gt;name[i]=&#39; &#39;;&lt;br /&gt;for(j =0; sname[j]!=&#39;\0&#39;; j++)&lt;br /&gt;name[i+j+1]=sname[i];&lt;br /&gt;name[i+j+1]=&#39; &#39;;&lt;br /&gt;for(k =0; lname[k]!=&#39;\0&#39;; k++)&lt;br /&gt;name[i+j+k+2]=lname[k];&lt;br /&gt;name[i+j+k+2]=&#39;\0 &#39;;&lt;br /&gt;printf(&quot;\n\n&quot;);&lt;br /&gt;printf(&quot;complete name after concatenation\n&quot;);&lt;br /&gt;printf(&quot;%s&quot;, name);&lt;br /&gt;getch();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;   first name: MOHAN&lt;br /&gt;   second name:KARAMCHAND&lt;br /&gt;   last name: GANDHI&lt;br /&gt;   complete name after concatenation&lt;br /&gt;   MOHAN KARAMCHAND GANDHI&lt;br /&gt;&lt;br /&gt;5.Write a program to display reverse of a string without using&lt;br /&gt; standard library functions.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char text[15];&lt;br /&gt;int i = 0;&lt;br /&gt;printf(&quot;enter the string&quot;);&lt;br /&gt;gets(text);&lt;br /&gt;while(text[i[!=&#39;\0&#39;)&lt;br /&gt;{&lt;br /&gt;printf(&quot;\n 5c is stored at location %u&quot;, text[i],&amp;text[i])&lt;br /&gt;i++;&lt;br /&gt;}&lt;br /&gt;strrev(text);&lt;br /&gt;printf(&quot;reverse string&quot;);&lt;br /&gt;printf(&quot;%s&quot;,text);&lt;br /&gt;i =0;&lt;br /&gt;while(text[i]!=&#39;\0&#39;)&lt;br /&gt;{&lt;br /&gt;printf(&quot;\n %c is stored at location %u&quot;,text[i], &amp;text[i]);&lt;br /&gt;i++;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;enter string:ABC&lt;br /&gt;A is stored at location 4054&lt;br /&gt;B is stored at location 4055&lt;br /&gt;C is stored at location 4056&lt;br /&gt;reverse string:CBA&lt;br /&gt;C is stored at location 4054&lt;br /&gt;B is stored at location 4055&lt;br /&gt;A is stored at location 4056&lt;br /&gt;&lt;br /&gt;6.Write a program to find the number of words in a given &lt;br /&gt;statement . Exclude spaces between them.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char text[30];&lt;br /&gt;int count = 0,i = 0;&lt;br /&gt;printf(&quot;enter the line of text&quot;);&lt;br /&gt;printf(&quot;give one space after each word&quot;);&lt;br /&gt;gets(text);&lt;br /&gt;while(text[i++]!=&#39;\0&#39;)&lt;br /&gt;if(text[i]==32 || text[i]==&#39;\0&#39;)&lt;br /&gt;cout++;&lt;br /&gt;printf(&quot;The number of words in line = %d\n&quot;, count);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;enter the line of text&lt;br /&gt;give one space after each words&lt;br /&gt;read books&lt;br /&gt;The number of words in line = 2</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/6368539189591819572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/programs-in-string-handling-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6368539189591819572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6368539189591819572'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/programs-in-string-handling-functions.html' title='Programs In String Handling Functions'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3348792565469522358.post-6142882643461669493</id><published>2011-09-23T00:28:00.001-07:00</published><updated>2011-09-23T00:28:46.246-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C Language"/><title type='text'>strcmp() function</title><content type='html'>This is a function which compares two strings to fin&lt;br /&gt;out whether they are same or different.The two strings are&lt;br /&gt;compared character by character until there is a mismatch &lt;br /&gt;or end of one of the strings is reached, whichever occurs &lt;br /&gt;first. If the two strings are identical , strcmp() returns&lt;br /&gt;a value zero. If they aren&#39;t not, it returns the numeric &lt;br /&gt;difference b/w the ASCII values of the first non-matching &lt;br /&gt;pairs of characters. Here is a program which puts strcmp()&lt;br /&gt;in action.&lt;br /&gt;&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  char string1[] = &quot;Jerry&quot;;&lt;br /&gt;  char string2[] = &quot;Ferry&quot;;&lt;br /&gt;  int i, j, k;&lt;br /&gt;  i = strcmp ( string1, &quot;Jerry&quot;);&lt;br /&gt;  j = strcmp ( string1, &quot;string2&quot;);&lt;br /&gt;  k = strcmp ( string1, &quot;Jerryboy&quot;);&lt;br /&gt;  printf(&quot;\n%d%d%d&quot;,i,j,k);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;output:&lt;br /&gt;0   4   -32&lt;br /&gt;&lt;br /&gt;     In the first call to strcmp(), the two strings are &lt;br /&gt;identical-&quot;Jerry&quot; and &quot;Jerry&quot; and the value returned by &lt;br /&gt;strcmp() is zero. In the second call ,the first character&lt;br /&gt;of &quot;Jerry&quot; doesn&#39;t match with the first character of &lt;br /&gt;&quot;Ferry&quot; and the result is 4, which is the numeric &lt;br /&gt;difference b/w ASCII value of &#39;J&#39; and ASCII value of &#39;F&#39;&#39;.&lt;br /&gt;In the third call to strcmp() also the same procedure &lt;br /&gt;repeats.</content><link rel='replies' type='application/atom+xml' href='http://quick-guide.blogspot.com/feeds/6142882643461669493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://quick-guide.blogspot.com/2011/09/strcmp-function.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6142882643461669493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3348792565469522358/posts/default/6142882643461669493'/><link rel='alternate' type='text/html' href='http://quick-guide.blogspot.com/2011/09/strcmp-function.html' title='strcmp() function'/><author><name>Ravi Kumar</name><uri>http://www.blogger.com/profile/16486941420272590924</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='19' height='32' src='http://3.bp.blogspot.com/_s5LKlMqWNho/SV9_YimrT2I/AAAAAAAAArs/NOo8bSLifBs/S220/t+shirts1111.JPG'/></author><thr:total>0</thr:total></entry></feed>